generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: need help giving a int value to a players character

Previous Thread :: Next Thread 
Tacobell158 is not online. Tacobell158
Joined: 27 May 2016
Total Posts: 220
04 Nov 2017 05:18 PM
So I am wanting to make a sheld that a player has like extra life and im not sure if i should do something like

local humanoid = game.Players.LocalPlayer.Character



local maxsheld = 100


local Players = game:GetService("Players")

function onPlayerAdded(player)
print("cool")
local sheld = Instance.new("IntValue")
sheld.Name = "Sheld"
sheld.Parent = character
sheld.Value = 100

end
--in a local script or





print("gave you item")



game.Players.PlayerAdded:connect(function(player)
print("gave you item")
local sheld = Instance.new("IntValue")
sheld.Name = "Sheld"
sheld.Parent = player.Character
sheld.Value = 100
print("gave you another item")
print(sheld.Parent)
end)

in a serverscript
Report Abuse
Tacobell158 is not online. Tacobell158
Joined: 27 May 2016
Total Posts: 220
04 Nov 2017 05:34 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image