how can i use functions? i tried doing this
function = local function(Give,x)
instance.new("leaderstats")
instance.parent = x
end
Give(game.Players.Player1,1)
how can i use functions? i tried doing this
function = local function(Give,x)
instance.new("leaderstats")
instance.parent = x
end
Give(game.Players.Player1,1)
you will should do
local function Give(x)
local Instanc = instance.new("Folder")
instanc.Name = "LeaderStats"
instanc.Parent = x
end
Give(game.Players.Player1,1)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Here's what it should look like local function give(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player end give(game.Players.LocalPlayer)