ERROR : function arguments expected near 'local'
Script: local Playe = game.Players:GetPlayerFromCharacter local equiped = Playe.equipped.Value
function changed() script.Parent.Text = "Equipped: "..equiped.Value end equiped.Changed:connect(changed)
ERROR : function arguments expected near 'local'
Script: local Playe = game.Players:GetPlayerFromCharacter local equiped = Playe.equipped.Value
function changed() script.Parent.Text = "Equipped: "..equiped.Value end equiped.Changed:connect(changed)
GetPlayerFromCharacter needs a parameter, that's the player Character. if it's a LocalScript you should do
local Playe = game.Players.LocalPlayer
yeah, thats right
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
hmmmm, add () to the first function; :GetPlayerFromCharacter()
and add the needed argument inside those brackets, which is the player's character