Hey! I was wondering on how to make a button that could be activated if a player and/or a cube was ontop of it, similar to the ones in Portal and Portal 2, but I don’t know how to do this, could anyone help?
1 Like
Can’t you just do something like script.Parent.Touched:Connect(function(part) If part.Parent:FindFirstChild("Humanoid") or if part.Parent.Name == "Box" then --whatever here end end)
sorry I cant format things good
1 Like
I dont know, I never tried to script touchparts before
This should be helpful
2 Likes
that made it so the button displays the number of parts touching it, I just want the button to activate and do a certain thing like open a door, while at the same time not displaying how many things are touching it