Made a admin gui and I used local scripts, I wanted it so I could do commands on other people. Now it's not working with a normal script.
print("Script Connected")
-- Explode
function ExplodeClick()
local name = script.Parent.PlayerExplode
local player = game.Workspace:FindFirstChild(name.Text)
local humanoid = player:FindFirstChild("Humanoid")
local exp = Instance.new("Explosion", player.Head)
exp.Position = player.Head.Position
exp.BlastRadius = 1
exp.Parent = player.Head
humanoid.MaxHealth = 100
end
script.Parent.Explode.MouseButton1Click:connect(ExplodeClick)
function GodClick()
local name = script.Parent.PlayerGod
local player = game.Workspace:FindFirstChild(name.Text)
local humanoid = player:FindFirstChild("Humanoid")
humanoid.MaxHealth = math.huge
end
script.Parent.God.MouseButton1Click:connect(GodClick)
function KickClick()
local name = script.Parent.PlayerKick
local player = game.Workspace:FindFirstChild(name.Text)
player:remove()
end
script.Parent.Kick.MouseButton1Click:connect(KickClick)
function SpeedClick()
local name = script.Parent.PlayerSpeed
local player = game.Workspace:FindFirstChild(name.Text)
local humanoid = player:FindFirstChild("Humanoid")
humanoid.WalkSpeed = 100
end
script.Parent.Speed.MouseButton1Click:connect(SpeedClick)
function UnGodClick()
local name = script.Parent.PlayerUnGod
local player = game.Workspace:FindFirstChild(name.Text)
local humanoid = player:FindFirstChild("Humanoid")
humanoid.MaxHealth = 100
end
script.Parent.UnGod.MouseButton1Click:connect(UnGodClick)

3 comments
Any errors?
Nein
Are you using FE ?