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: Sorry so many posts, but quick question.

Previous Thread :: Next Thread 
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:19 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:25 PM
[ Content Deleted ]
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 08:27 PM
explain what you want the script to do ZAM GIRL
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:29 PM
[ Content Deleted ]
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:31 PM
Is the parent in sp or bp
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:33 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:33 PM
[ Content Deleted ]
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 08:37 PM
local id = 153154621
local player = game.Players.LocalPlayer
local sword = game.Lighting.Venomshank
local marketService = game:GetService("MarketplaceService")
-- Since I have very little knowledge with the BC scripting stuff I'll try to make it simple.

function giveSword(player)
local newSword = sword:Clone()
newSword.Parent = player.Backpack
end

function playerOwns(player, id)
if marketService:PlayerOwnsAsset(player, id) then
return true
end
end

script.Parent.MouseButton1Down:connect(function()
if playerOwns(player, id) then
giveSword(player)
end
end)

I try to hard it probably doesnt even work also Idk about that prompt purhcase line maybe u can addthat
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 08:37 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
28 Apr 2014 09:46 PM
[ Content Deleted ]
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
28 Apr 2014 11:00 PM
Did you accidentally flip the arguments of PlayerOwnsAsset? I might be wrong.
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
29 Apr 2014 07:38 AM
[ Content Deleted ]
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