Claimscript 4
Key RequiredUniversal

Claimscript 4

Universal Scriptmscript32mscript32 2.6K views 13 executesUpdated Jan 12, 2025
Unrated
00
Lua Script•98 lines (3463 chars)
-- Random Action Hub with Special Effects

local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "RandomEffectsHub"
screenGui.Parent = player.PlayerGui

-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 400, 0, 500)
mainFrame.Position = UDim2.new(0.5, -200, 0.5, -250)
mainFrame.BackgroundColor3 = Color3.fromRGB(math.random(100, 255), math.random(100, 255), math.random(100, 255))
mainFrame.BorderSizePixel = 3
mainFrame.Parent = screenGui
mainFrame.Visible = false

local isHubOpen = false

-- Toggle Button
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 200, 0, 50)
toggleButton.Position = UDim2.new(0.5, -100, 0.9, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(200, 200, 255)
toggleButton.Text = "Open/Close Hub"
toggleButton.Parent = screenGui

toggleButton.MouseButton1Click:Connect(function()
    isHubOpen = not isHubOpen
    mainFrame.Visible = isHubOpen
end)

-- Random Actions
local function createExplosion()
    local explosion = Instance.new("Explosion")
    explosion.Position = player.Character.HumanoidRootPart.Position
    explosion.Parent = workspace
end

local function changeSpeed()
    player.Character.Humanoid.WalkSpeed = math.random(50, 100)
end

local function spawnRandomObject()
    local part = Instance.new("Part")
    part.Size = Vector3.new(math.random(1, 10), math.random(1, 10), math.random(1, 10))
    part.Position = player.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
    part.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
    part.Parent = workspace
end

local function teleportToRandomPlayer()
    local players = game.Players:GetPlayers()
    local randomPlayer = players[math.random(1, #players)]
    if randomPlayer.Character then
        player.Character.HumanoidRootPart.CFrame = randomPlayer.Character.HumanoidRootPart.CFrame
    end
end

local function createLightning()
    local lightning = Instance.new("Part")
    lightning.Size = Vector3.new(0.2, 50, 0.2)
    lightning.Position = player.Character.HumanoidRootPart.Position + Vector3.new(math.random(-5, 5), 50, math.random(-5, 5))
    lightning.Anchored = true
    lightning.Color = Color3.fromRGB(255, 255, 0)
    lightning.Parent = workspace
end

local function spinCharacter()
    local bodyGyro = Instance.new("BodyGyro")
    bodyGyro.MaxTorque = Vector3.new(100000, 100000, 100000)
    bodyGyro.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(360), 0)
    bodyGyro.Parent = player.Character.HumanoidRootPart
end

-- Buttons in Hub
local actions = {
    {"Create Explosion", createExplosion},
    {"Change Speed", changeSpeed},
    {"Spawn Random Object", spawnRandomObject},
    {"Teleport to Random Player", teleportToRandomPlayer},
    {"Create Lightning", createLightning},
    {"Spin Character", spinCharacter}
}

for i, action in ipairs(actions) do
    local button = Instance.new("TextButton")
    button.Size = UDim2.new(0, 350, 0, 50)
    button.Position = UDim2.new(0.5, -175, 0, 60 * (i - 1))
    button.BackgroundColor3 = Color3.fromRGB(math.random(100, 255), math.random(100, 255), math.random(100, 255))
    button.Text = action[1]
    button.Parent = mainFrame

    button.MouseButton1Click:Connect(action[2])
end

-- Draggable GUI
mainFrame.Active = true
mainFrame.Draggable = true

Features & Information

Claim

Community Comments (1)

mscript32mscript32Jan 12, 2025(edited)

Made by Chatgpt

More Scripts for Universal Scripts