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 » Club Houses » Let's Make a Deal
Home Search
 

Re: how do u find the whole link to ur developer product

Previous Thread :: Next Thread 
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:54 AM
cuz like this is the ID of my dev product but look what it goes to

http://www.roblox.com/5-Walkspeed-item?id=25543932



and yes the script im using needs the whole link not just the ID


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
RichBAG is not online. RichBAG
Joined: 31 Dec 2013
Total Posts: 3263
11 Aug 2015 08:54 AM
Developer products don't have a link, the just have an ID.
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:55 AM
@rich

local developerProduct = "http://www.roblox.com/5-Walkspeed-item?id=25543932" -- Item link to the developer product, you must use the WHOLE Link, not just the ID.
local speedInc = 5 --Change this to the amount of Walkspeed you'd like to give.

Stack = true --If you set this to true, the user will get the effect of there normal Walkspeed & will get an add on of the Set Amount. i.e; If you have 16 Walkspeed, and you set it to true, whatever amount will become 26+66=92 total Walkspeed.

function getItemId(developerProduct)
if tonumber(developerProduct) then
return tonumber(developerProduct)
elseif developerProduct:find("id=") then
a,b = developerProduct:find("id=")
return tonumber(developerProduct:sub(b+1))
end
end

devId = getItemId(developerProduct)

function purchaseCompleted(playerId, productId, purchased)
if not purchased or productId ~= devId then return false end

for i,v in pairs(game.Players:GetPlayers()) do
if v.userId == playerId then
v.CharacterAdded:connect(function()
repeat wait() until v.Character and v.Character:FindFirstChild("Humanoid")
v.Character.Humanoid.WalkSpeed = v.Character.Humanoid.WalkSpeed + speedInc
end)
if v.Character and v.Character:FindFirstChild("Humanoid") then
v.Character.Humanoid.WalkSpeed = v.Character.Humanoid.WalkSpeed + speedInc
end
end
end
end


if u no how 2 read dat


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
bluefredy is not online. bluefredy
Joined: 23 Oct 2010
Total Posts: 59243
11 Aug 2015 08:55 AM
Heard of ROBLOX wiki?

Literally has a whole page about how to use developer products
Report Abuse
Terratronic is not online. Terratronic
Joined: 23 Apr 2012
Total Posts: 5301
11 Aug 2015 08:56 AM
@wardudeweather

I want to clean that up soooooooo bad
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:57 AM
@terra feel free to as long as it still works because i cant :P


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
RichBAG is not online. RichBAG
Joined: 31 Dec 2013
Total Posts: 3263
11 Aug 2015 08:57 AM
Yes,

Developer products don't have a link. Roblox added developer products because some games needed to sell other things ingame but they had no Gamepass space so Roblox made developer products..

They don't have links, the only have ids.
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:58 AM
so that's not going to work is what you're saying


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
Modikinz is not online. Modikinz
Joined: 01 Dec 2014
Total Posts: 11429
11 Aug 2015 08:58 AM
I don't understand the question :p
Unless you're talkng about the roblox asset link...
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:58 AM
@modi possibly


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
RichBAG is not online. RichBAG
Joined: 31 Dec 2013
Total Posts: 3263
11 Aug 2015 08:58 AM
No that won't work because developer products don't have links.. The just have the Id
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 08:59 AM
from the way i'm reading it the script doesn't actually need the link, just the ID but can someone more experienced with scripts confirm that for me ??


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
2HV is not online. 2HV
Joined: 16 Jun 2012
Total Posts: 26195
11 Aug 2015 09:00 AM
How about write yout own script?
Also just paste the ID
Report Abuse
Terratronic is not online. Terratronic
Joined: 23 Apr 2012
Total Posts: 5301
11 Aug 2015 09:01 AM
Yes, you ONLY use the ID.
Report Abuse
YouPay is not online. YouPay
Joined: 27 Jun 2015
Total Posts: 8522
11 Aug 2015 09:01 AM
Put the ID, then buy the devproduct to test if it works.


~iecky
Report Abuse
ZacAttackk is not online. ZacAttackk
Joined: 23 Mar 2010
Total Posts: 15481
11 Aug 2015 09:02 AM
local developerProduct = 25543932 -- Item ID
Report Abuse
Modikinz is not online. Modikinz
Joined: 01 Dec 2014
Total Posts: 11429
11 Aug 2015 09:02 AM
Let me grab a script from one of my games real quick. I'm on phone right now :p
I'll get on my laptop right now
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 09:04 AM


@mod that'd be really helpful :P

im trying to make one for walkspeed rn but then im gonna try to do one for health aswell
11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,110|
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 09:08 AM
ok the button works and it links to the dev product but the actual script to change walkspeed doesnt


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,107|
Report Abuse
ZacAttackk is not online. ZacAttackk
Joined: 23 Mar 2010
Total Posts: 15481
11 Aug 2015 09:12 AM
I have 2 seperate scripts, 1 is the button to prompt the purchase, and then tehres a script in the server that detects when purchases have been complete. if the dev prod ID of the purchase matches the dev prod ID of the walkspeed one, then add walkspeed to the character
Report Abuse
Modikinz is not online. Modikinz
Joined: 01 Dec 2014
Total Posts: 11429
11 Aug 2015 09:13 AM
sorri mang

i used guis for my developer product stuff so
i used intvalues

I'll get my friend Chuck.


♔ тнє υикиσωи ѕтυffє∂ αиιмαℓ ♔ || ROBUX: R$1,167 ||
Report Abuse
Terratronic is not online. Terratronic
Joined: 23 Apr 2012
Total Posts: 5301
11 Aug 2015 09:14 AM
Why are you not using the ProcessReceipt function provided by the Marketplace service?
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 09:14 AM
@modi im using a gui too


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,106|
Report Abuse
wardudeweather is not online. wardudeweather
Joined: 30 Sep 2010
Total Posts: 63670
11 Aug 2015 09:16 AM
@terra no idea


this is in the GUI

local marketplaceService = game:GetService("MarketplaceService")
local developerProduct = 25543932 -- Item ID

local walkspeedButton = script.Parent.BuyWalkspeed
local player = script.Parent.Parent.Parent

function getItemId(developerProduct)
if tonumber(developerProduct) then
return tonumber(developerProduct)
elseif developerProduct:find("id=") then
a,b = developerProduct:find("id=")
return tonumber(developerProduct:sub(b+1))
end
end

devId = getItemId(developerProduct)
function buyDevProduct()
marketplaceService:PromptProductPurchase(player, devId)
end

walkspeedButton.MouseButton1Down:connect(buyDevProduct)


and this is in the script storage in serverscriptservice

local developerProduct = 25543932 -- Item ID
local speedInc = 5 --Change this to the amount of Walkspeed you'd like to give.

Stack = true --If you set this to true, the user will get the effect of there normal Walkspeed & will get an add on of the Set Amount. i.e; If you have 16 Walkspeed, and you set it to true, whatever amount will become 26+66=92 total Walkspeed.

function getItemId(developerProduct)
if tonumber(developerProduct) then
return tonumber(developerProduct)
elseif developerProduct:find("id=") then
a,b = developerProduct:find("id=")
return tonumber(developerProduct:sub(b+1))
end
end

devId = getItemId(developerProduct)

function purchaseCompleted(playerId, productId, purchased)
if not purchased or productId ~= devId then return false end

for i,v in pairs(game.Players:GetPlayers()) do
if v.userId == playerId then
v.CharacterAdded:connect(function()
repeat wait() until v.Character and v.Character:FindFirstChild("Humanoid")
v.Character.Humanoid.WalkSpeed = v.Character.Humanoid.WalkSpeed + speedInc
end)
if v.Character and v.Character:FindFirstChild("Humanoid") then
v.Character.Humanoid.WalkSpeed = v.Character.Humanoid.WalkSpeed + speedInc
end
end
end
end


11 rics is luv 11 rics is lyf|RAP:1,372,917 & 2.6m+ value|R$2,106|
Report Abuse
Terratronic is not online. Terratronic
Joined: 23 Apr 2012
Total Posts: 5301
11 Aug 2015 09:21 AM
Yea, how is the server script supposed to execute when they purchase something? It's just a function with no calling. Useless.

http://wiki.roblox.com/index.php?title=ProcessReceipt_(Callback)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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