
997 Views
1.4k Executions
Snake Script
Universal Script 📌
someguyonscriptblox10K executions
6 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
basic snake script dude. i got tired of my dumb knowledge of lua and js asked chatgpt idfc flame me all you want
--// CLEANUP (prevents duplicates if re-executed)
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
if playerGui:FindFirstChild("SnakeUI") then
playerGui.SnakeUI:Destroy()
end
--// Create ScreenGui
local gui = Instance.new("ScreenGui")
gui.Name = "SnakeUI"
gui.ResetOnSpawn = false
gui.Parent = playerGui
--// Main Window
local window = Instance.new("Frame")
window.Size = UDim2.new(0, 300, 0, 420)
window.Position = UDim2.new(0.5, -150, 0.5, -210)
window.BackgroundColor3 = Color3.fromRGB(240, 240, 240)
window.BorderSizePixel = 2
window.Parent = gui
--// Title Bar
local titleBar = Instance.new("Frame", window)
titleBar.Size = UDim2.new(1, 0, 0, 30)
titleBar.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
local title = Instance.new("TextLabel", titleBar)
title.Size = UDim2.new(1, 0, 1, 0)
title.Text = "Snake"
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1
title.Font = Enum.Font.SourceSansBold
title.TextSize = 18
--// DRAG SYSTEM (works on mobile + executors)
local dragging = false
local dragStart, startPos
titleBar.InputBegan:Connect(function(input)





"send's hate"