TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 02:48 PM |
i want only people that bought vip allowed to buy please help C;
script: local t = 0
script.Parent.MouseButton1Click:connect(function() if Game:GetService("GamePassService"):PlayerHasPass(Player, 175478409) then if game.Players.LocalPlayer.leaderstats.Cash.Value >= 300 then if t == 0 then t = 1 game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.BackPack wait(1) game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.Starterpack script.Parent.Text = "GravCoil given!" else script.Parent.Text = "This feature is for VIP" end end end end) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 02 Sep 2014 02:51 PM |
Backpack*
and you used Player which isnt indexed |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 02:53 PM |
| player = script.Parent.Parent.Parent.Parent.Parent.Parent ? |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 02 Sep 2014 02:54 PM |
| Player=game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 03:00 PM |
So like this?
local t = 0 Player=game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() if Game:GetService("GamePassService"):PlayerHasPass(Player, 175478409) then if game.Players.LocalPlayer.leaderstats.Points.Value >= 300 then if t == 0 then t = 1 game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.Backpack wait(1) game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.Starterpack script.Parent.Text = "GravCoil given!" else script.Parent.Text = "This feature is for VIP" end end end end) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 02 Sep 2014 03:03 PM |
local t = 0 Player=game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() if Game:GetService("GamePassService"):PlayerHasPass(Player, 175478409) then if game.Players.LocalPlayer.leaderstats.Points.Value >= 300 then if t == 0 then t = 1 game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.Backpack wait(1) game.Lighting.gravcoil:Clone().Parent = game.Players.LocalPlayer.Starterpack script.Parent.Text = "GravCoil given!" t=0 end else script.Parent.Text = "This feature is for VIP" end end end)
|
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 02 Sep 2014 03:12 PM |
output? and do u own the game pass and it should be a local scirpt |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 03:14 PM |
Own: Yes Local: yes Output: Doesnt say anything o.o |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 03:32 PM |
I found a way.
Like this: if game.Players.LocalPlayer.VIP.Value == false then game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer,ID) return else |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 02 Sep 2014 03:46 PM |
script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.VIP.Value == false then game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer,175478409) return else local t = game.Lighting.gravcoil:Clone() t.Parent = game.Players.localplayer.Backpack wait(1) local t = game.Lighting.gravcoil:Clone() t.Parent = game.Players.localplayer.Starterpack end end)
wont work qq |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
|
| 03 Sep 2014 10:50 AM |
| You can't test gamepasses on a testing server. |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
|
| 04 Sep 2014 08:21 AM |
| I know. I tested it on real game. |
|
|
| Report Abuse |
|
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|
TheProM
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 436 |
|
| |
|