|
| 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 |
|
| |