generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: VIP script not work correctly, randomly changing characters?

Previous Thread :: Next Thread 
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
26 Oct 2016 05:52 PM
My VIP script isn't working correctly - whenever you reset, it cycles through random VIP characters without even having the VIP.

local GPS = game:GetService("MarketplaceService")
if GPS:PlayerOwnsAsset(p, script.Parent.Rex.Value) or GPS:PlayerOwnsAsset(p, script.Parent.Sat.Value) or GPS:PlayerOwnsAsset(p, script.Parent.Fusion.Value) then
for _,v in pairs(game.ReplicatedStorage.Game_Tools[suit.Tools.Value]:GetChildren()) do
if v:IsA("HopperBin") or v:IsA("Tool") then
if p:FindFirstChild'Backpack' then
v:clone().Parent = p.Backpack
end end end

if GPS:PlayerOwnsAsset(p, script.Parent.Rex.Value) and GPS:PlayerOwnsAsset(p, script.Parent.Sat.Value) then
for _,v in pairs(game.ReplicatedStorage.Game_Tools[suit.Tools.Value]:GetChildren()) do
if v:IsA("HopperBin") or v:IsA("Tool") then
if p:FindFirstChild'Backpack' then
v:clone().Parent = p.Backpack
end
end
end
else
if suit then
print('Error! Missing tools for: '..c.Name)
else
print('Error! Missing suit for: '..c.Name)
end
end
wait(0.15)
db.Value = false
end
end
end
end
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
26 Oct 2016 06:01 PM
Someone please H E L P
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
26 Oct 2016 06:30 PM
Here, it's tabbed...

local GPS = game:GetService("MarketplaceService")
if GPS:PlayerOwnsAsset(p, script.Parent.Rex.Value) or GPS:PlayerOwnsAsset(p, script.Parent.Sat.Value) or GPS:PlayerOwnsAsset(p, script.Parent.Fusion.Value) then
for _,v in pairs(game.ReplicatedStorage.Game_Tools[suit.Tools.Value]:GetChildren()) do
if v:IsA("HopperBin") or v:IsA("Tool") then
if p:FindFirstChild'Backpack' then
v:clone().Parent = p.Backpack
end
end
end

if GPS:PlayerOwnsAsset(p, script.Parent.Rex.Value) and GPS:PlayerOwnsAsset(p, script.Parent.Sat.Value) then
for _,v in pairs(game.ReplicatedStorage.Game_Tools[suit.Tools.Value]:GetChildren()) do
if v:IsA("HopperBin") or v:IsA("Tool") then
if p:FindFirstChild'Backpack' then
v:clone().Parent = p.Backpack
end
end
end
else
if suit then
print('Error! Missing tools for: '..c.Name)
else
print('Error! Missing suit for: '..c.Name)
end
end
wait(0.15)
db.Value = false
end)
end
end
end
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
26 Oct 2016 08:07 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image