
102 Views
1.2k Executions
Snake minigame by mrdagon
Universal Script 📌
MrdagonREALFirst script
5 months 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 a snake mini game
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!







