Freddy Fazbear Ethan's Portfolio
No BGM Loaded
FIGHTING SYSTEM

test script

test script.lua
Lua
-- ==========================================
-- ROBLOX LUA SIMULATOR DEMO SCRIPT
-- ==========================================

print("🚀 Starting game initialization...")

-- 1. Load Services & Players
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local localPlayer = Players.LocalPlayer

print("LocalPlayer detected: " .. tostring(localPlayer.Name))
print("Workspace gravity is set to: " .. tostring(Workspace.Gravity))

-- 2. Mock Instance creation
print("🔨 Spawning new Part...")
local part = Instance.new("Part")
part.Name = "TestBrick"
part.Size = Vector3.new(10, 2, 10)
part.Color = Color3.fromRGB(0, 180, 255)

print("Created " .. part.Name .. " with size: " .. tostring(part.Size))

-- 3. Yield wait demonstration
warn("⚠️ Waiting for assets to load...")
task.wait(1.5)

-- 4. Print final statements
print("✓ Assets loaded successfully!")
print("--- SIMULATION FINISHED ---")

Description