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

Can some on help me to fix this VIP spawn script?

Asked by 10 years ago
creator = game.CreatorId
gamepassid=0
Tshirt=""
playersallowed={"them45"}
ID=0




function entered(player)
    if  player.userId == creator or game:GetService("GamePassService"):PlayerHasPass(player, gamepassid) or  (check(player.Name)) or Player:IsInGroup(ID) or player.Character.Torso.roblox.Texture==texture then
        print("A Vip has entered the server")
        player.CharacterAdded:connect(respawned)
    end
end
game.Players.PlayerAdded:connect(entered)

function respawned(char)
    char.Torso.Anchored = true
    wait()
    char.Torso.CFrame = script.Parent.CFrame + Vector3.new(0, 2, 0)
    wait()
    char.Torso.Anchored = false
end


line 9 is the bit no working only the creator only work my friend to spawn there whne i have hime on the secrip

0
For "Player:IsInGroup(ID)" it's supposed to be "player" Shawnyg 4330 — 10y
0
And I don't see you declaring "texture" anywhere trogyssy 221 — 10y

Answer this question