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

Help with joining VIP script?

Asked by 9 years ago
local vipPass = 231935192

game.Players.PlayerAdded:connect(function(player)
    if game.GamePassService:PlayerHasPass(player,vipPass) then
        local cashmoney = game.ServerStorage.MoneyStorage:WaitForChild(player.Name)
        cashmoney.Value = cashmoney.Value + 5000
        player.CharacterAdded:connect(function(char)
            if char:WaitForChild("Humanoid") then
                char.Humanoid.MaxHealth = 150
                char.Humanoid.Health = 150
            end
        end)
    end
end)

I have this script inside ServerScriptStorage and I was whenever a VIP joins a server they get all the perks. It works, but if you leave and rejoin the same server then you don't get these perks. How can I make it so you get these perks every time you enter a new server as well as the same server you were in a few minutes ago?

0
You should really place any values you want to define for the client's use INSIDE the client - e.g. Player Instance. Goulstem 8144 — 9y
0
what do you mean? NinjoOnline 1146 — 9y
0
If your talking about the MoneyStorage, I have it there cause I am using Berezas Tycoon Kit, and that's how he does it. Is it something do with that item? NinjoOnline 1146 — 9y

Answer this question