You're wanting to create a roblox game. You go to roblox, you login, and you start looking for the link. You may find it or it might find you -- just in case you don't know where it is, click Create on the top tab -- and you download the program required. You start Roblox Studio and then you create a template (use baseplate).
Hold on. When you get inside, you don't know what to do. How do we fix that?
Well, we could make a script.
Click on workspace, press the plus button, and add a Script. Not a LocalScript, but a Script.
After you do that, copy and paste the following code.
local players = game.Players -- get players
players.PlayerAdded:Connect(function(plr) -- on player joined get player
local char = plr.Character or plr.CharacterAdded:Wait() -- wait for character
local hum = char:WaitForChild("Humanoid") -- wait for humanoid
hum.Health = 50 -- change humanoid health to 50
end)
This code looks overwhelming, but as you can see here, this gets the list of players, get player when added, gets the character and the humanoid (properties of the player). Then it changes the humanoid health to 50. Read more here.
Well, that's all of now. Be prepared for future updates. I will let you know when I released another one.
Top comments (1)
That's amazing I would really look into this, I'm planning on designing a Roblox game in the future but would have to plan out and structure what my game should look like.