Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Unexpected Symbol near '=' Help?

Asked by
KAAK82 16
10 years ago
local kill_gui = game.ServerStorage.Killed
workspace.ChildAdded:connect(function(char)
if char:FindFirstChild("Humanoid") then
char.Humanoid.Died:connect(function() 
if char.Humanoid:FindFirstChild("creator") then
a = kill_gui:clone().Parent = char.Humanoid.creator.Value.PlayerGui
wait(3) 
a:Destroy()
end
end)
end
end)

1 answer

Log in to vote
1
Answered by 10 years ago
local kill_gui = game.ServerStorage.Killed
workspace.ChildAdded:connect(function(char)
if char:FindFirstChild("Humanoid") then
char.Humanoid.Died:connect(function() 
if char.Humanoid:FindFirstChild("creator") then
a = kill_gui:clone().Parent == char.Humanoid.creator.Value.PlayerGui
wait(3) 
a:Destroy()
end
end)
end
end)

0
but wen cloning, u dont Compare, u Assaign :/ KAAK82 16 — 10y
0
Well, you said "unexpected symbol near =" so, I thought you meant to fix that. ScriptingHelpersALT 20 — 10y
Ad

Answer this question