Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

function arguments expected near 'local'?

Asked by 5 years ago

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)

0
hmmmm, add () to the first function; :GetPlayerFromCharacter() starmaq 1290 — 5y
0
and add the needed argument inside those brackets, which is the player's character starmaq 1290 — 5y

1 answer

Log in to vote
2
Answered by
SurfedZ 36
5 years ago

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

local Playe = game.Players.LocalPlayer
0
yeah, thats right starmaq 1290 — 5y
Ad

Answer this question