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 » Scripting Helpers
Home Search
 

Re: New thread.

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:39 PM
I thought I should start out clean. What's wrong with this script? No output errors. I tested it out on play. Nothing seems to be working for one reason or another.



function CLICKEDNOOB(Player)
if not game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 24341406) then
print("Player dosen't own the item!")
game:GetService("MarketplaceService"):PromptPurchase(Player, 24341406, false, Robux)
end
end

script.Parent.MouseClick:connect(CLICKEDNOOB)
Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
23 Sep 2013 06:40 PM
why do you use if not

that's so dumb

Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:41 PM
@Excellus, Ikr I got that from that noob on my other thread.
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
23 Sep 2013 06:42 PM
Did you ignore what I posted in the last thread?
The connection line should look like this:

script.Parent.ClickDetector.MouseClick:connect(CLICKEDNOOB)

and put a ClickDetector in the part
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:44 PM
@Voidion, are you serious? I have a clickdetector before In posted my other thread, i'm not dumb. And I did script.Parent which is the clickdetector.!
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:46 PM
I like this version better!



function CLICKEDNOOB(Player)

if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 24341406) then
else
print("Player dosen't own the item!")
game:GetService("MarketplaceService"):PromptPurchase(Player, 24341406, false, Robux)



end
end

script.Parent.MouseClick:connect(CLICKEDNOOB)
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
23 Sep 2013 06:49 PM
why put the script in the clickdetector?
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
23 Sep 2013 06:50 PM
"Ikr I got that from that noob on my other thread."

Why are you using it then? You are the one asking for help so please refrain from insulting people that actually want to help you.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:51 PM
@Voidion, because there's no problem with doing that



function CLICKEDNOOB(Player)

if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 24341406) then
else
print("Player dosen't own the item!")
game:GetService("MarketplaceService"):PromptPurchase(Player, 24341406, false, Robux)



end
end

script.Parent.MouseClick:connect(CLICKEDNOOB)
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
23 Sep 2013 06:52 PM
i know, but there wouldn't be any problems if you just put the script in the part...
...so yeah...
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
23 Sep 2013 06:53 PM
@Voidion, it doesn't matter.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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