local cashvip = 254637214 local orbitalvip = 254911738 function hascash(player) -- checks to see if the player owns your pass return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, cashvip) end function hasorbital(player) -- checks to see if the player owns your pass return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, orbitalvip) end game.Players.PlayerAdded:connect(function(plr) if hascash(plr) then local sparkles = Instance.new("ParticleEmitter") sparkles.Parent = script.Parent.Torso sparkles.Texture = ("http://www.roblox.com/asset/?id=243891919") sparkles.Rotation = NumberRange.new(0,90) sparkles.RotSpeed = NumberRange.new(1,8) local Color1 = Color3.new(0,255,0) local Color2 = Color3.new(0,85,0) sparkles.Color = ColorSequence.new(Color1,Color2) sparkles.VelocitySpread = 30 sparkles.Speed = NumberRange.new(5,8) sparkles.Size = NumberSequence.new(0.5,0.6,0.5,0.6,0.5) sparkles.Lifetime = NumberRange.new(1) sparkles.Rate = 50 end if hasorbital(plr) then script.Parent.Humanoid.Walkspeed = 20 script.Parent.Humanoid.MaxHealth = 125 script.Parent.Humanoid.Health = 125 end if game.Players.PlayerAdded.IsInGroup(2587858)then local fire = Instance.new("Fire") fire.Parent = script.Parent.Torso fire.Color = Color3.new(0,0,0) fire.SecondaryColor = Color3.new(0,0,0) end end)
i've tried making script.Parent into game.Players.LocalPlayers.Character... but it still doesnt work! please help :(
Basically, what the script is supposed to do is if you have the cashvip gamepass, it gives you green sparkles on your body. If you have orbital vip, then it makes you have a walkspeed of 20 and health of 125, and if you're in the group, you're supposed to have white fire in your body.
The output tells me nothing is wrong on both studio and on server.