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

I was about to make a part can be only touched when the user's name is "cherrythetree"?

Asked by 5 years ago
Edited 5 years ago

This is the script:

script.Parent.Touched:Connect(function(hit)
    if not hit and hit.Name == script.Parent.Value.Value then
        warn("User's name is not appropriate")
    end
end)

this won't work and the warn doesn't even show.. Help? the Value object is located at the part, the script's type is Script.

  • Part
    • Script
    • Value
0
Please provide more information. Where is it located, and script type? User#19524 175 — 5y
0
wait so you want to warn when cherrythetree touches it? NsNidPL 41 — 5y
0
i was about to warn when user's name is not cherrythetree. cherrythetree 130 — 5y
0
mate did you downvote me User#19524 175 — 5y

Answer this question