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

What isn't working here?

Asked by
xJesss 5
9 years ago
01local cashvip = 254637214
02local orbitalvip = 254911738
03 
04 
05function hascash(player) -- checks to see if the player owns your pass
06    return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, cashvip)
07end
08function hasorbital(player) -- checks to see if the player owns your pass
09    return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, orbitalvip)
10end
11 
12game.Players.PlayerAdded:connect(function(plr)
13    if hascash(plr) then
14     local sparkles = Instance.new("ParticleEmitter")
15sparkles.Parent = script.Parent.Torso
View all 40 lines...

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.

0
Tell us what this script SHOULD be doing. Tell us what it is doing. Any errors in your Output? Copy and paste for us, etc alphawolvess 1784 — 9y
0
Edited. xJesss 5 — 9y
0
How can i be more specific... xJesss 5 — 9y

Answer this question