
1.4k Views
44 Executions
2D Gun game based off of Space Invaders
Universal Script 📌
DcruzRace10K executions
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Just like Space Invaders collect the power ups The Power ups are forcefield and Faster shooting the max of enemies you can let in is 5 Tell me if they're is any issues in the comments
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "Gun2DGame"
gui.ResetOnSpawn = false
local gameFrame = Instance.new("Frame")
gameFrame.Size = UDim2.new(0, 600, 0, 400)
gameFrame.Position = UDim2.new(0.5, -300, 0.5, -200)
gameFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
gameFrame.BorderSizePixel = 2
gameFrame.Parent = gui
local playerBox = Instance.new("Frame")
playerBox.Size = UDim2.new(0, 30, 0, 30)
playerBox.Position = UDim2.new(0, 285, 0, 350)
playerBox.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
playerBox.Parent = gameFrame
local playerHP = 3
local hpText = Instance.new("TextLabel")
hpText.Size = UDim2.new(0, 100, 0, 30)
hpText.Position = UDim2.new(0, 0, 0, 0)
hpText.BackgroundTransparency = 1
hpText.TextColor3 = Color3.new(1, 1, 1)
hpText.TextScaled = true
hpText.Text = "HP: " .. playerHP
hpText.Parent = gameFrame
local score = 0
local scoreText = Instance.new("TextLabel")
scoreText.Size = UDim2.new(0, 150, 0, 30)
scoreText.Position = UDim2.new(1, -160, 0, 0)
scoreText.BackgroundTransparency = 1
scoreText.TextColor3 = Color3.new(1, 1, 1)









Deez nugget
To win you gotta kill 50 enemies