function onClicked() if script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Board") ~= nil then script.Parent.Parent.Parent.Parent.Character.Board:remove() end script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344) end script.Parent.MouseButton1Down:connect(onClicked)
any way you can help guys ?
Yeah, MouseButton1Down is for gui objects and handles, if you want a ClickDetector event, use MouseClick. (if you need more help)
e.e?
function Clicked() if script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Board") ~= nil then script.Parent.Parent.Parent.Parent.Character.Board:remove() end script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344) end script.Parent.MouseButton1Down:connect(Clicked)
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344)
try changing to
script.Parent.Parent.Parent.Parent.Character:MoveTo(171.677, 697.81, 471.344)