|
| 21 Jun 2014 11:52 AM |
repeat wait() until game.Players.LocalPlayer local player = game.Players.LocalPlayer tool = game.ReplicatedStorage:findFirstChild("Darkheart")-- changed that line local passId = 159702103
script.Parent.MouseButton1Down:connect(function( if Game:GetService("MarketPlaceService"):PlayerOwnsAsset(player, passId) then wait(.7) local a = tool:clone() a.Parent = player.Backpack
end end)
The line that has the error is
if Game:GetService("MarketPlaceService"):PlayerOwnsAsset(player, passId) then
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 11:53 AM |
| for some reason it errors if I try and post the error name |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 12:15 PM |
'if Game:GetService("MarketPlaceService"):PlayerOwnsAsset(player, passId) then'
--I think it is just "MarketplaceService" |
|
|
| Report Abuse |
|
|
RSFTheory
|
  |
| Joined: 31 Aug 2013 |
| Total Posts: 315 |
|
| |
|
|
| 21 Jun 2014 03:49 PM |
| the two suggestions did not work |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 03:49 PM |
| it says it expected a name or "..." |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 21 Jun 2014 05:15 PM |
You forgot to close the parentheses on the first line of the connection.
So change this: "script.Parent.MouseButton1Down:connect(function(" to this: "script.Parent.MouseButton1Down:connect(function()" |
|
|
| Report Abuse |
|
|
| |
|