Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local E2 = Instance.new("RemoteEvent", owner.Character)
- E2.Name = "The"
- local E = Instance.new("RemoteEvent", owner.Character)
- E.Name = "The2"
- NLS([[
- local Players = game:GetService("Players")
- local playerToClone = nil
- function CloneMe(char)
- char.Archivable = true
- local clone = char:Clone()
- wait(0.0000000000000000000001)
- char.Archivable = false
- return clone
- end
- charClone = nil
- OriginalPlayer = owner.Character
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Target ~= nil then
- local Model = Mouse.Target:FindFirstAncestorOfClass("Model")
- if Model then
- local PC = Players:GetPlayerFromCharacter(Model)
- if PC then
- playerToClone = PC.Name
- wait(0.1)
- local charClone = CloneMe(game.Players[playerToClone].Character)
- charClone.Parent = game.Workspace
- local animate = game.Players[playerToClone].Character.Animate:Clone()
- owner.Character = charClone
- workspace.CurrentCamera.CameraSubject = charClone
- animate.Parent = charClone
- tool = charClone:findFirstChildOfClass("Tool")
- if old then
- wait(0.1)
- oldClone:Destroy()
- wait(0.1)
- oldClone = charClone
- old = false
- wait(0.1)
- old = true
- else
- wait(0.1)
- oldClone = charClone
- old = true
- end
- end
- end
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- switch = 0
- function switching()
- switch = switch + 1
- if switch == 1 then
- owner.Character = OriginalPlayer
- workspace.CurrentCamera.CameraSubject = OriginalPlayer
- elseif switch == 2 then
- owner.Character = oldClone
- workspace.CurrentCamera.CameraSubject = oldClone
- wait(0.1)
- switch = 0
- end
- end
- local E2 = owner.Character:WaitForChild("The")
- function KeyDownlol(key)
- key = key:lower()
- if key == "q" then
- switching()
- E2:FireServer("Down")
- tool:Activate()
- end
- end
- Mouse.KeyDown:Connect(KeyDownlol)
- local E = owner.Character:WaitForChild("The2")
- function KeyDownlol(key)
- key = key:lower()
- if key == "e" then
- tool:Activate()
- E:FireServer("Down")
- end
- end
- Mouse.KeyDown:Connect(KeyDownlol)
- ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment