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.
✓ ANSWER ACCEPTED
How do i make it so that if player touches then it will alter the properties?
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.
