Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

function arguments expected near 'local'?

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)

2 comments

0

hmmmm, add () to the first function; :GetPlayerFromCharacter()

0

and add the needed argument inside those brackets, which is the player's character

1 answer

GetPlayerFromCharacter needs a parameter, that's the player Character. if it's a LocalScript you should do

local Playe = game.Players.LocalPlayer

1 comment

0

yeah, thats right

This discussion is preserved as it was. New answers, comments, and votes are closed.