can you make me a strong man sim game like the popular one put the items are on your…
- User
can you make me a strong man sim game like the popular one put the items are on your back and you carry them to the finish line on roblox and i want you to give me a command to make the game
Assistant
Certainly! Creating a "Strong Man Sim" game on Roblox where players carry items on their back to the finish line sounds like a fun and engaging idea. Below is a step-by-step guide to help you create this game, including a script command to get you started.
Step-by-Step Guide to Create "Strong Man Sim" on Roblox
1. Set Up Your Game
- Open Roblox Studio and create a new game.
- Design a simple map with a start point and a finish line. You can add obstacles to make it more challenging.
2. Create the Player Character
- Use the default
R6orR15character rig. - To attach items to the player's back we'll use accessories
3. Create the Items
- Insert Part into the workspace. This will be the item that the player needs to carry.
- Resize and shape it as desired. You can also add a
MeshPartfor more detailed items. - Set the Anchored property to
falseso it can be moved. - Parent the item to a model and add a
WeldConstraintto attach it to the player's back when picked up - Insert a ProximityPrompt into the item to allow players to pick it up.
4. Scripting the Game
- Insert a Script into ServerScriptService.
- Use the following script to handle item picking and carrying:
-- ServerScriptService Script -- Function to attach item to the player's back local function attachItemToBack(item, player) local character = player.Character if not character then return end local humanoid = character:FindFirstChildOfClass("Humanoid") local torso = character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso") if not humanoid or not torso then return end -- Create a weld to attach the item to the player's back local weld = Instance.new("WeldConstraint") weld.Part0 = torso weld.Part1 = item weld.Parent = item -- Position the item on the back weld.C0 = CFrame.new(0, -1, -1.5) -- Adjust this CFrame to position the item correctly item.Anchored = false item.Parent = character end -- Function to handle item pickup local function onItemPickup(prompt, player) local item = prompt.Parent if item:IsA("Model") and item:FindFirstChild("WeldConstraint") then attachItemToBack(item, player) end end -- Connect the ProximityPrompt to the pickup function game.Workspace.DescendantAdded:Connect(function(descendant) if descendant:IsA("ProximityPrompt") then descendant.Triggered:Connect(onItemPickup) end end) -- Function to check if the player reached the finish line local function onTouchFinishLine(part) local character = part.Parent local player = game.Players:GetPlayerFromCharacter(character) if player then -- Check if the player is carrying an item local item = character:FindFirstChild("Item") -- Adjust this to match your item's name if item then -- Player successfully carried the item to the finish line player:AddPoints(1) -- Example of rewarding the player. You need to create a leaderstats system for this. item:Destroy() -- Remove the item end end end -- Assuming you have a part named "FinishLine" in the workspace local finishLine = workspace:FindFirstChild("FinishLine") if finishLine then finishLine.Touched:Connect(onTouchFinishLine) end5. Leaderstats
To keep track of player points you need to create a leaderstats system. Insert a script in StarterPlayer->StarterPlayerScripts with the following code:
-- StarterPlayerScripts Script game.Players.PlayerAdded:Connect(function(player) -- Create the leaderstats folder local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player -- Create the Points value local points = Instance.new("IntValue") points.Name = "Points" points.Parent = leaderstats points.Value = 0 -- Function to add points player.AddPoints = function(amount) points.Value = points.Value + amount end end)6. Testing the Game
- Click Play to test your game.
- Ensure that when a player triggers the
ProximityPrompt, the item attaches to their back. - Verify that when the player touches the finish line with the item, they receive points, and the item is removed.
Command to Make the Game
To summarise, here is the command to make the game. This involves setting up the necessary scripts and objects in Roblox Studio.
-
Create the Map:
- Design your map with a start point and a finish line.
- Add obstacles if desired.
-
Add Items:
- Insert Part for the items.
- Add a
WeldConstraintand ProximityPrompt to each item.
-
Insert Scripts:
- ServerScriptService: Add the script provided above to handle item attachment and finish line detection.
- StarterPlayerScripts: Add the script to handle leaderstats.
-
Test the Game:
- Click Play in Roblox Studio to test your game.
With these steps and scripts you should have a basic "Strong Man Sim" game on Roblox where players can pick up items, carry them on their back, and bring them to the finish line!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.