Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local localPlayer = game:GetService("Players").LocalPlayer
- local character = localPlayer.Character
- if _G.isLoaded == nil then --load check cuz of anti teleport
- _G.isLoaded = false
- delay(8, function()
- _G.isLoaded = true
- end)
- end
- if _G.isLoaded == false or _G.isLoaded == nil then
- game.StarterGui:SetCore("SendNotification", {
- Title = "LOADING",
- Text = "PLEASE WAIT UNTIL ANTI TELEPORT IS SAFE STILL WAITING. EXECUTE AGAIN",
- Duration = 2
- });
- return
- end
- local bindable = game:GetService("CoreGui"):FindFirstChild("teleporter") or Instance.new("BindableFunction") bindable.Name = "teleporter" bindable.Parent = game:GetService("CoreGui")
- if _G.canTeleport == nil then
- _G.canTeleport = false
- end
- bindable.OnInvoke = function() -- preventing teleport ban
- if _G.canTeleport == false then
- _G.canTeleport = true
- game:GetService("ReplicatedStorage").Remotes.Sync:InvokeServer("Player", "SpawnCharacter")
- delay(9, function()
- _G.canTeleport = false
- end)
- return true, wait(1.2)
- else
- return false
- end
- end
- local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
- local X = Material.Load({
- Title = "Demonfall - Tp to Zones",
- Style = 2,
- SizeX = 500,
- SizeY = 350,
- Theme = "Dark"
- })
- local Main = X.New({
- Title = "Main"
- })
- for i,v in ipairs(game:GetService("Workspace").Zones:GetChildren()) do
- Main.Button({
- Text = "Teleport to " .. v.Name,
- Callback = function()
- local canTeleport, duration = bindable:Invoke()
- if canTeleport then
- wait(duration)
- character.HumanoidRootPart.CFrame = v.CFrame
- end
- end
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement