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

Can you do this?

Asked by 8 years ago

Is there a way you can make two parts go through each other but not a player.

0
You mean in game, not in Studio? DrCylonide 158 — 8y
0
I don't think you can :( Volodymyr2004 293 — 8y

2 answers

Log in to vote
1
Answered by
Wutras 294 Moderation Voter
8 years ago

Possibilities


--[[•CFrame CFrame is meaning CoordinateFrame and can be used to move every object with the "CFrame" property IGNORING any colision. You can use it with either CFrame.new(x, y, z) or other object's CFrames.]] local Part=Instance.new("Part", workspace) --Creates a "Part" object in workspace. for i=1,10 do --A loop that lets the block inside happen 10 times. Part.CFrame=Part.CFrame*CFrame.new(0,0,-0.1) --This moves the part to its z coordinate by -0.1. wait(0.1) --This stops the script for 0.1 seconds. end -- "end" is also required to end for loops. --[[•Vector3 Vector3 is the exact coordinates in a coordinate system with 3 coordinate types: x, y and z. You can use it to move everything with the "Position" property IGNORING any collision. You can use it with either Vector3.new(x, y, z) or with other object's Position.]] local Part=Instance.new("Part", workspace) --Creates a "Part" object in workspace. for i=1,10 do --A loop that lets the block inside happen 10 times. Part.Position=Part.Position+Vector3.new(0,0, 0.1) --This moves the part towards the z coordinate by 0.1. wait(0.1) --This stops the script for 0.1 seconds. end -- "end" is also required to end for loops.

I hope this can help you! If you have any questions, feel free to ask!

0
This won't help if your trying to make a game where the parts are random and such but its clever Volodymyr2004 293 — 8y
0
How will this not help? Wutras 294 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

If you create the parts in the player's camera, I believe they will only be visible / touchable to the player.

Answer this question