Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:FindFirstChildOfClass("Players").LocalPlayer
- local Mouse = player:GetMouse()
- local UIS = game:GetService("UserInputService")
- Enabled=false
- invert=false
- Rot=false
- UIS.InputBegan:Connect(function(input, arc)
- --Modes
- if input.KeyCode == Enum.KeyCode.Z then
- if Enabled then
- Enabled=false
- else
- Enabled=true
- end
- elseif input.KeyCode == Enum.KeyCode.L then
- if Rot then
- Rot=false
- else
- Rot=true
- end
- elseif input.KeyCode == Enum.KeyCode.P then
- if invert then
- invert=false
- else
- invert=true
- end
- --Actions
- elseif input.KeyCode == Enum.KeyCode.T then
- if Enabled then
- if Mouse.Target then
- if Rot then
- if invert then
- Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(1, 0, 0)
- else
- Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(1, 0, 0)
- end
- else
- if invert then
- Mouse.Target.Position = Mouse.Target.Position - Vector3.new(1, 0, 0)
- else
- Mouse.Target.Position = Mouse.Target.Position + Vector3.new(1, 0, 0)
- end
- end
- end
- end
- elseif input.KeyCode == Enum.KeyCode.Y then
- if Enabled then
- if Mouse.Target then
- if Rot then
- if invert then
- Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(0, 1, 0)
- else
- Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(0, 1, 0)
- end
- else
- if invert then
- Mouse.Target.Position = Mouse.Target.Position - Vector3.new(0, 1, 0)
- else
- Mouse.Target.Position = Mouse.Target.Position + Vector3.new(0, 1, 0)
- end
- end
- end
- end
- elseif input.KeyCode == Enum.KeyCode.U then
- if Enabled then
- if Mouse.Target then
- if Rot then
- if invert then
- Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(0, 0, 1)
- else
- Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(0, 0, 1)
- end
- else
- if invert then
- Mouse.Target.Position = Mouse.Target.Position - Vector3.new(0, 0, 1)
- else
- Mouse.Target.Position = Mouse.Target.Position + Vector3.new(0, 0, 1)
- end
- end
- end
- end
- elseif input.KeyCode == Enum.KeyCode.R then
- if Enabled then
- if Mouse.Target then
- Mouse.Target:Destroy()
- end
- end
- elseif input.KeyCode == Enum.KeyCode.E then
- if Enabled then
- if Mouse.Target then
- local Copy = Mouse.Target:Clone()
- Copy.Parent = Mouse.Target.Parent
- end
- end
- elseif input.KeyCode == Enum.KeyCode.C then
- if Enabled then
- if Mouse.Target then
- if Mouse.Target.CanCollide then
- Mouse.Target.CanCollide = false
- else
- Mouse.Target.CanCollide = true
- end
- end
- end
- elseif input.KeyCode == Enum.KeyCode.Q then
- if Enabled then
- if Mouse.Target then
- if Mouse.Target.Anchored then
- Mouse.Target.Anchored = false
- else
- Mouse.Target.Anchored = true
- end
- end
- end
- elseif input.KeyCode == Enum.KeyCode.B then
- if Enabled then
- if Mouse.Target then
- Mouse.Target.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0, 15, 0)
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment