Universal Script 📌
102 Views
1.2k Executions

Snake minigame by mrdagon

Universal Script 📌
MrdagonREAL
MrdagonREALFirst script
5 months 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 a snake mini game

View Raw
-- Minijuego de Serpiente COMPACTO para Delta Executor
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local UserInputService = game:GetService("UserInputService")

-- Eliminar GUI previa si existe
if CoreGui:FindFirstChild("SnakeGameGui") then
    CoreGui.SnakeGameGui:Destroy()
end

-- Variables del Juego (Tablero más chico)
local gridSize = 12  -- Reducido de 20 a 12
local boardWidth = 14
local boardHeight = 14
local snake = {}
local direction = Vector2.new(1, 0)
local nextDirection = direction
local foodPos = Vector2.new(5, 5)
local score = 0
local gameRunning = false
local moveInterval = 0.20
local lastMove = 0

-- Crear Interfaz Gráfica (GUI) Mini
local sg = Instance.new("ScreenGui")
sg.Name = "SnakeGameGui"
sg.Parent = CoreGui

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, boardWidth * gridSize + 20, 0, boardHeight * gridSize + 115) -- Más compacto
mainFrame.Position = UDim2.new(0.5, -(boardWidth * gridSize) / 2, 0.4, -(boardHeight * gridSize) / 2)
mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
mainFrame.BorderSizePixel = 1
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = sg

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -25, 0, 22)
title.Text = "  Snake Mini"


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
15
3
Approved 29 minutes ago
Universal Script 📌
36
1
Approved 1 hour ago
Script hub
199
1.0k
Bumped 3 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 4 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 4 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1