So the code I wrote up is literally just meant to detect if the brick is touched, and if it's touched, is it by 'IcyEvil', and if so to print "lol im just testing this out again"
Output posts no errors, it just doesn't work. So, what have I done wrong here?
script.Parent.Touched:connect(function(hit)
game.Players.PlayerAdded:connect(function(plr)
local char = plr.Character
if hit.Parent == char and char.Name == ("IcyEvil") then
print('lol im just testing this out again')
end
end)
end)

1 comment
remove game.Players.PlayerAdded:connect(function(plr) you can get the player by hit.parent