RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"give me a good idea for a game and also script it for me"
Idea: A treasure hunt game where players have to find hidden treasures on an island filled with obstacles and challenges. To get started, you can create a script for spawning treasures at random locations on the island and a script for detecting when a player finds a treasure. -- Server script for spawning treasures local spawnPoints = {} -- Add Vector3 positions for spawn points on the island local treasureTemplate = game.ServerStorage.Treasure -- Store a treasure part in ServerStorage while true do local spawnPoint = spawnPoints[math.random(1, #spawnPoints)] local treasure = treasureTemplate:Clone() treasure.Parent = game.Workspace treasure.Position = spawnPoint wait(60) -- Adjust the time between spawns as needed end -- Script for detecting when a player finds a treasure local part = script.Parent local function onTreasureFound(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then player.leaderstats.Treasures.Value = player.leaderstats.Treasures.Value + 1 part:Destroy() end end part.Touched:Connect(onTreasureFound) You can expand this idea by adding a timer, leaderboard, and various challenges and obstacles players must overcome to find the treasures. You can also create a shop where players can spend their collected treasures on upgrades and cosmetics.