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

How do i make it so that if player touches then it will alter the properties?

What script should i use so that if the player touches an object, then another object must be False CanCollide and 1 Transparency. This would be helpful for making a level system in roblox.

1 answer

✓ Accepted answer

First of all you can detect if a player touches the part with a touched function like i have done below then you can edit the properties of the other part.

script.Parent.Touched:Connect(function(hit)
game.Workspace.Part2.Transparency = 1 --change part2 to the name of the part 
game.Workspace.Part2.CanCollide = false
end)

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