server script :
1 | script.Parent.RemoteEvent.OnServerEvent:Connect( function (Player, Plr) |
2 | while true do |
3 | workspace:FindFirstChild(Plr.Name):FindFirstChild( "HumanoidRootPart" ).CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0.1 , 0.0 , 0 ) wait() end |
4 | end ) |
local script :
1 | script.Parent.MouseButton 1 Down:Connect( function () |
2 | script.Parent.RemoteEvent:FireServer(script.Parent.Parent.TextBox.Text) |
3 | end ) |