So I have made a script but what I need it to do it doesn’t do it so can you help me I need it to when a block is clicked a block slides to a new position.
here is the script it have no errors
local Water = workspace.wate
End = game.Workspace.Wate.Finish
bodyposition = game.Workspace.Wate.Water.BodyPosition
I tried it and it still didn’t work could you maybe show a video on how to do it or screenshots
or provide a link to a tutorial on how to do if you can then many thanks.
No sorry I have just started learning scripting so I thought I got it right Do you think you could do a video or take screenshots on how to do this if you don’t know what I need done Please say and ill try tell you in the best way possible.
Do you check If you type Its name correctly? like uppercase/lowercase Wate or wate and make sure that the part you’re trying to move Isn’t Anchored.
This should work I guess.
local Water = workspace.Wate
local End = game.Workspace.Wate.Finish --what is this?
local bodyposition = workspace.Wate.Water.BodyPosition
Water.ClickDetector.MouseClick:Connect(function(Player)
bodyposition.Position = Water.Position
end)
Ok so I looked at what you told me to do and I also watched some videos on it and here is the script so far I got rid of the body position but what I got does work but it only prints a word
the only help I need now is how to make it change its position when clicked or go 1 stud every second till it gets to a height
local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:Connect(function(PlayerWhoClicked)
print(“Clikced On ClikcDetector”)
game.Workspace.Water.position = Random