Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Credits to; HamstaGang
- Official thread; https://v3rmillion.net/showthread.php?tid=942169
- --------------------------------------------------------------------------------
- Script was provided from the official Demon Slayers Community Server; https://discord.gg/ADEVZ5R
- Official thread; https://v3rmillion.net/showthread.php?tid=936292 |<-- More info
- ]]--
- -- Teleport to an exit
- local LocalPlayer = game.Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- Mouse.KeyDown:connect(function(KeyPressed)
- if KeyPressed == "c" then -- Change keybind here to whatever key works best for you.
- local Doors = game:GetService("Workspace").CurrentMap:GetChildren()
- for i, door in ipairs(Doors) do
- if door.Name == "ExitDoor" then
- local PlayerCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
- LocalPlayer.Character.HumanoidRootPart.CFrame = door.Open.Door.CFrame + Vector3.new(0, -2, 0)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment