player = game.Players.LocalPlayer RW = player.chancestats.RW local passId = 157223223 function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end game.Players.PlayerAdded:connect(function(plr) _G Beast if isAuthenticated(Beast) then RW.Value = 10 else Beast RW.Value = 0 end end end end)
player = game.Players.LocalPlayer RW = player.chancestats.RW local passId = 157223223 function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end game.Players.PlayerAdded:connect(function(plr) _G.Beast.RW = 0 if isAuthenticated(Beast) then RW.Value = 10 end end)
You had 'elseif', it should be just 'if' and your ends was a bit messed up...
Edited
Beast = _G Beast RW = Beast.chancestats.RW local passId = 157223223 function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end game.Players.PlayerAdded:connect(function(plr) Beast.RW.Value = 0 elseif isAuthenticated(player) then Beast.RW.Value = 10 end end end
My newer Script, now says it needs an end near elseif, but wen I add it, it says eof expected near elfeif EDIT1: '=' expected near 'RW'