Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script generated by R2Sv2
- -- R2Sv2 developed by Luckyxero
- local Event = game:GetService("Workspace").DungeonDoorStart.InteractEvent
- Event:FireServer()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local GUI = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Credits = Instance.new("TextLabel")
- local Button1= Instance.new("TextButton")
- -- Properties
- floor = 1
- modifier = false
- hum = game.Players.LocalPlayer.Character
- ScreenGui.Parent = game.CoreGui
- GUI.Name = "GUI"
- GUI.Parent = ScreenGui
- GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- GUI.BorderSizePixel = 0
- GUI.Position = UDim2.new(0, 0, 0.730039531, 0)
- GUI.Size = UDim2.new(0, 316, 0, 339)
- GUI.Style = Enum.FrameStyle.RobloxRound
- Title.Name = "Title"
- Title.Parent = GUI
- Title.Active = true
- Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
- Title.Size = UDim2.new(0, 200, 0, 50)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "Title"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 14
- Button1.Name = "Button1"
- Button1.Parent = GUI
- Button1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Button1.Position = UDim2.new(0.114720426, 0, 0.233038351, 0)
- Button1.Size = UDim2.new(0, 200, 0, 50)
- Button1.Font = Enum.Font.SourceSans
- Button1.Text = "Button1"
- Button1.TextColor3 = Color3.new(1, 1, 1)
- Button1.TextSize = 14
- Button1.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- Button1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- Button1.BackgroundColor3 = Color3.new(40, 127, 71)
- start()
- end
- end)
- Credits.Name = "Credits"
- Credits.Parent = GUI
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
- Credits.Size = UDim2.new(0, 109, 0, 18)
- Credits.Font = Enum.Font.SourceSans
- Credits.Text = "Credits to MRobbin99"
- Credits.TextSize = 14
- -- functions
- -- Kill
- function start()
- while modifier do
- wait(.1)
- dungeonTemp = game.Workspace.DungeonTemp:GetChildren()
- for i = 1, #dungeonTemp do
- if floor == 6 or floor == 12 and i == 2 then
- wait(5)
- target = game:GetService("Workspace").DungeonDoorContinue.DungeonDoor
- hum.HumanoidRootPart.CFrame = target.CFrame
- wait(.5)
- local Event = game:GetService("Workspace").DungeonDoorContinue.InteractEvent
- Event:FireServer()
- floor = floor + 1
- wait(4)
- elseif dungeonTemp[i].Name == "Exit" then
- Event = game:GetService("Workspace").DungeonTemp.Exit.Portal.InteractEvent
- Event:FireServer()
- floor = floor + 1
- wait(3)
- print(floor)
- elseif dungeonTemp[i].Name ~= "Room" then
- waveFolder = dungeonTemp[i]
- kill()
- end
- end
- end
- end
- function kill()
- enemies = waveFolder:GetChildren()
- for i = 1, #enemies do
- if enemies[i]:FindFirstChild("Humanoid") ~= nil then
- enemies[i]:FindFirstChild("Humanoid").Health = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement