The claw machine is not moving
game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function(model,claw,lowofx,maxofx,lowofz,maxofz)
script.Parent.left.MouseButton1Click:Connect(function()
if claw.Position.X < lowofx then
print("to low")
else
claw.Position += game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.RightVector*-0.25
print("moving")
end
end)
script.Parent.right.MouseButton1Click:Connect(function()
if claw.Position.X >= maxofx then
print("too low")
else
claw.Position += game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.RightVector*0.25
print("moving")
end
end)
script.Parent.up.MouseButton1Click:Connect(function()
if claw.Position.X < lowofz then
print("too low")
else
claw.Position += game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.RightVector*0.25
print("moving")
end
end)
script.Parent.down.MouseButton1Click:Connect(function()
if claw.Position.Z >= maxofz then
print("too low")
else
claw.Position += game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.RightVector*0.25
print("moving")
end
end)
end)