Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- You can change the script but don't steal it :c
- local scriptEnabled = true
- local function toggleKillBrickProperties(enable)
- for _, part in pairs(workspace:GetDescendants()) do
- if part:IsA("BasePart") and part.Name == "KillBrick" then
- part.CanQuery = not enable
- part.CanTouch = not enable
- part.CanCollide = not enable
- end
- end
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.ResetOnSpawn = false
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 170, 0, 70)
- mainFrame.Position = UDim2.new(0, 10, 0, 10)
- mainFrame.BackgroundTransparency = 1
- mainFrame.Parent = screenGui
- mainFrame.Active = true
- mainFrame.Draggable = true
- local cantDieButton = Instance.new("TextButton")
- cantDieButton.Size = UDim2.new(0, 100, 0, 50)
- cantDieButton.Position = UDim2.new(0, 0, 0, 0)
- cantDieButton.Text = "Can't Die: ON"
- cantDieButton.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
- cantDieButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- cantDieButton.Parent = mainFrame
- local cantDieUICorner = Instance.new("UICorner")
- cantDieUICorner.CornerRadius = UDim.new(0, 10)
- cantDieUICorner.Parent = cantDieButton
- local function toggleScript()
- scriptEnabled = not scriptEnabled
- if scriptEnabled then
- cantDieButton.Text = "Can't Die: ON"
- toggleKillBrickProperties(true)
- else
- cantDieButton.Text = "Can't Die: OFF"
- toggleKillBrickProperties(false)
- end
- end
- cantDieButton.MouseButton1Click:Connect(toggleScript)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local function showNotification()
- game.StarterGui:SetCore("SendNotification", {
- Title = "!!!";
- Text = "Made By Dummy094";
- Duration = 3;
- })
- end
- if player.Character then
- showNotification()
- else
- player.CharacterAdded:Connect(function()
- showNotification()
- end)
- end
- player.CharacterAdded:Connect(function()
- screenGui.Parent = player:WaitForChild("PlayerGui")
- end)
- toggleKillBrickProperties(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement