Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Unexpected Symbol near '=' Help?

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

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)

2 comments

0

but wen cloning, u dont Compare, u Assaign :/

0

Well, you said "unexpected symbol near =" so, I thought you meant to fix that.

This discussion is preserved as it was. New answers, comments, and votes are closed.