Universal Script 📌
1.4k Views
44 Executions

2D Gun game based off of Space Invaders

Universal Script 📌
DcruzRace
DcruzRace10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

View Raw


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)


Comments

2
Log in to join the conversation. Login
blep's profile picture
blep1 year ago

Deez nugget

1
DcruzRace's profile picture
DcruzRaceUploader1 year ago

To win you gotta kill 50 enemies

1

Tags

More universal scripts

See all
Universal Script 📌
162.1k
51.2k
Bumped 12 minutes ago
Universal Script 📌
9.9k
60.7k
Bumped 1 hour ago
Key System
Universal Script 📌
4.0k
10.4k
Bumped 1 hour ago
Script hub
272.8k
884.6k
Bumped 2 hours ago
Key System

Script hub

#16 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features