Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Made by joji1000, wait 5 seconds for process to commence...')
- wait(5)
- print('To rotate to mouse direction press Q, in this state you can also click to move forward a bit, Press Q again to deactivate it.')
- print('Press E to start rotating randomly.')
- Player = game:GetService('Players').LocalPlayer
- FF = nil
- RotateToMouse = false
- RandomRotate = false
- Invincible = false
- ExceptionList = {'joji1000'}
- Iteration = 0
- Character = Player.Character
- Humanoid = Character.Humanoid
- Humanoid.PlatformStand = true
- for _,Parts in next,Character:GetChildren() do
- if Parts.ClassName == 'Part' then
- local BodyForce = Instance.new('BodyForce',Parts)
- BodyForce.force = Vector3.new(0, game.Workspace.Gravity, 0)*Parts:GetMass()
- elseif Parts.ClassName == 'Accessory' then
- local BodyForce = Instance.new('BodyForce',Parts.Handle)
- BodyForce.force = Vector3.new(0, game.Workspace.Gravity, 0)*Parts.Handle:GetMass()
- end
- end
- if Player.StarterGear:FindFirstChild('AntiGrav') == nil then
- script:Clone().Parent = Player.StarterGear
- end
- Player:GetMouse().KeyDown:connect(function(Key)
- Key = string.byte(Key)
- if Key == 113 then
- if RandomRotate == false then
- if RotateToMouse == false then
- RotateToMouse = true
- elseif RotateToMouse == true then
- RotateToMouse = false
- end
- end
- elseif Key == 101 then
- if RotateToMouse == false then
- if RandomRotate == false then
- Iteration = 0
- RandomRotate = true
- elseif RandomRotate == true then
- RandomRotate = false
- end
- end
- elseif Key == 122 then
- if Invincible == true then
- Invincible = false
- if FF ~= nil then
- FF:Remove()
- end
- --Humanoid.Name = 'Humanoid'
- Humanoid.MaxHealth = 100
- Humanoid.Health = 100
- elseif Invincible == false then
- local Allow = false
- for _,Exception in pairs (ExceptionList) do
- if Player.Name == Exception then
- Allow = true
- end
- end
- if Allow == true then
- Invincible = true
- if FF == nil then
- FF = Instance.new('ForceField', Character)
- else
- FF.Parent = Character
- end
- --Humanoid.Name = 'uisgnwqtfeyvwydnyvEGNITGNVYWGCYVGHDCVGVGHWVNugewbcghxveygVNHGRVWGHWVDghcdwhvrwhc'
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- local Message = Instance.new('Message',workspace)
- Message.Text = 'Warning; If '..Player.Name..' dies then everyone on the server will die, this is not abuse as you have been warned.'
- game.Debris:AddItem(Message, 3)
- end
- end
- end
- end)
- Player:GetMouse().Button1Down:connect(function()
- if RotateToMouse == true then
- local Moving = true
- local Velocity = Instance.new('BodyVelocity',Character.HumanoidRootPart)
- Velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- game:GetService('RunService').Heartbeat:connect(function()
- if Moving == true then
- Velocity.Velocity = Character.HumanoidRootPart.CFrame.lookVector*50
- end
- end)
- delay(1, function()
- Moving = false
- Velocity:Destroy()
- end)
- end
- end)
- Character.Humanoid.Died:connect(function()
- if Invincible == true then
- for _,Players in pairs (game:GetService('Players'):GetChildren()) do
- if Players.Name ~= Player.Name then
- Players.Character:FindFirstChildOfClass('Humanoid').Health = 0
- Players.Character:FindFirstChildOfClass('Humanoid').MaxHealth = 0
- end
- end
- end
- end)
- game:GetService('RunService').Heartbeat:connect(function()
- Humanoid.PlatformStand = true
- if Character.Parent.Name ~= 'Workspace' then
- if Invincible == true then
- Character.Parent = game.Workspace
- Humanoid.Health = 0
- end
- end
- if Invincible == true then
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- end
- if RotateToMouse == true then
- if Player:GetMouse().Hit~=nil then
- Character.Torso.CFrame = CFrame.new(Character.Torso.Position, Player:GetMouse().Hit.p)
- end
- end
- if RandomRotate == true then
- if Iteration <= 10 then
- Iteration = 0
- Character.Torso.CFrame = Character.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
- else
- Iteration = Iteration+1
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement