I been trying to script something that moves when a button is clicked, but it just not working... Here's my script i been working on lately:
local Item = script.Parent
local P = Item.Platform
local F = Item.Finish
local S = Item.Start
local BP = P.BodyPosition
local B = Item.Button
local B1 = Item.Button2
function onClicked()
if B.onClicked == onClicked then
Item.BP = Item.Finish
if B1.onClicked == onClicked then
Item.BP = Item.Start
end
end
end
Can i get some help plz?

2 comments
Is finish a vector3 value? What is in your output? What is "Item.Finish" and "Item.Start"? Where is this button in workspace? Where is the script? Where is the part you are moving? You need to provide a LOT more information!
Finish is not a vector3 value, it's a part, and item.finish and item.start are the positions i must have them go to. The button is in the model with the script and etc. The part am trying to move it to is the finish/start position.