Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = game.Players.LocalPlayer:GetMouse()
- m.KeyDown:connect(function(k)
- k = k:lower()
- if k == "c" then
- for i, v in pairs(workspace.Food:GetChildren()) do
- if v.ClassName == "Part" then
- v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(2,-1,0)
- end
- end
- end
- end)
- --]]
- function code()
- local soul1 = game.Workspace.Food:FindFirstChild("DeadH")
- if soul1 ~= nil then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = soul1.CFrame
- else
- soul2 = game.Workspace.Food:FindFirstChild("DeadSR") -- You can swap these if you want to tp to deadSR instead
- if soul2 ~= nil then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = soul2.CFrame
- end
- end
- end
- ----
- on = 1
- ----
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F3 then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(code)
- if good and on == 1 then
- code()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F4 then
- on = 0
- end
- end)
- plr = game.Players.LocalPlayer
- hum = plr.Character.HumanoidRootPart
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- if mouse.Target then
- hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement