Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Players = game:GetService("Players")
- local mouse = Players.LocalPlayer:GetMouse()
- local a = false
- mouse.KeyDown:Connect(function(key)
- if key == "x" then
- if a == false then
- pcall(function() game.Workspace.Map.Parent = ReplicatedStorage end)
- if game.Workspace:FindFirstChild('#elta') ~= nil then
- game.Workspace:WaitForChild('#elta'):Destroy()
- end
- local abc = Instance.new('Part', workspace)
- abc.Anchored = true
- abc.Name = "#elta"
- abc.Size = Vector3.new(2048, 1, 2048)
- abc.CFrame = CFrame.new(Players.LocalPlayer.Character.HumanoidRootPart.CFrame.X, Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Y -10, Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Z)
- a = true
- elseif a == true then
- pcall(function() ReplicatedStorage.Map.Parent = game.Workspace end)
- if game.Workspace:FindFirstChild('#elta') ~= nil then
- game.Workspace:WaitForChild('#elta'):Destroy()
- end
- a = false
- end
- end
- end)
Add Comment
Please, Sign In to add comment