im trying to make a script where if you click on the part it jumps into the air
1 Like
You can do part:ApplyImpulse(Vector3.yAxis * force)
5 Likes
Using this, here is your script @Cretinpng
Just create a script, put it into the part of your choice and voila it should work fine.
--Variables
local Part = script.Parent;
local CD = Instance.new("ClickDetector");
local Force = 500;
-- Functions
CD.Name = "Click"
CD.Parent = Part
CD.MouseClick:Connect(function(player)
print("player clicked")
Part:ApplyImpulse(Vector3.yAxis * Force)
end)
3 Likes
thank you so much! i was confused on the force part
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.