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

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

Asked by 7 years ago

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

Log in to vote
0
Answered by
Prestory 1395 Moderation Voter
7 years ago
Edited 7 years ago

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)
Ad

Answer this question