What isn't working here?
01 | local cashvip = 254637214 |
02 | local orbitalvip = 254911738 |
05 | function hascash(player) |
06 | return game:GetService( "MarketplaceService" ):PlayerOwnsAsset(player, cashvip) |
08 | function hasorbital(player) |
09 | return game:GetService( "MarketplaceService" ):PlayerOwnsAsset(player, orbitalvip) |
12 | game.Players.PlayerAdded:connect( function (plr) |
14 | local sparkles = Instance.new( "ParticleEmitter" ) |
15 | sparkles.Parent = script.Parent.Torso |
17 | sparkles.Rotation = NumberRange.new( 0 , 90 ) |
18 | sparkles.RotSpeed = NumberRange.new( 1 , 8 ) |
19 | local Color 1 = Color 3. new( 0 , 255 , 0 ) |
20 | local Color 2 = Color 3. new( 0 , 85 , 0 ) |
21 | sparkles.Color = ColorSequence.new(Color 1 ,Color 2 ) |
22 | sparkles.VelocitySpread = 30 |
23 | sparkles.Speed = NumberRange.new( 5 , 8 ) |
24 | sparkles.Size = NumberSequence.new( 0.5 , 0.6 , 0.5 , 0.6 , 0.5 ) |
25 | sparkles.Lifetime = NumberRange.new( 1 ) |
28 | if hasorbital(plr) then |
29 | script.Parent.Humanoid.Walkspeed = 20 |
30 | script.Parent.Humanoid.MaxHealth = 125 |
31 | script.Parent.Humanoid.Health = 125 |
34 | if game.Players.PlayerAdded.IsInGroup( 2587858 ) then |
35 | local fire = Instance.new( "Fire" ) |
36 | fire.Parent = script.Parent.Torso |
37 | fire.Color = Color 3. new( 0 , 0 , 0 ) |
38 | fire.SecondaryColor = Color 3. new( 0 , 0 , 0 ) |
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.