Im making a script that makes a part move up when it is clicked! Now the part that is supposed to move isn't the scripts parent, so lets just say its parent is workspace and its name is "MovingPart"! Now this morning I found the right function but its the part of the script where the "MovingPart" actually moves up and in no other direction say 5 studs! Now I think that I could probably answer my question myself on the Roblox Wiki, but I have no idea what to search, but I am pretty sure I once knew what this is called but clearly I dont remember how too! But anyways here is the script!
function onClicked(playerWhoClicked)
game.workspace.MovingPart.Position.Y = game.workspace.MovingPart.Position.Y + 500
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Vector3 Ill keep that in mind