all this is is a local script with the following code in;
script.Parent.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
script.Parent:Destroy()
end
end)
all this is is a local script with the following code in;
script.Parent.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
script.Parent:Destroy()
end
end)
Hey!
The reason as to why your script isn't working is because you are using a LocalScript in Workspace. A localscript cannot function in workspace to destroy a part. Put it in StarterCharacterScripts Instead.
You will need to change the code, and this is how you would do it:
local NowEnteringPart = workspace.NowEntering -- NOTE! If you change where the part is located, make sure to change this as well!
NowEnteringPart.Touched:Connect(function(hit)
NowEnteringPart:Destroy()
end)
Wow dude, thanks! I did not know that! Of course I'll accept your answer!
No problem!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
heres what it looks like in da explorer: https://www.imageupload.net/image/uhw.HUp3M