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 » Scripters
Home Search
 

Re: How to fix?

Previous Thread :: Next Thread 
Dackus is not online. Dackus
Joined: 01 Aug 2011
Total Posts: 81
25 Aug 2016 09:07 PM

TB = true
TB2 = true
TB3 = true
TB4 = true



TB = game.StarterGui.MainMenu.Frame1
TB2 = game.StarterGui.MainMenu.Frame2
if TB.Visible == true then
TB2.Visible = false
end




TB3 = game.StarterGui.MainMenu.Frame1
TB4 = game.StarterGui.MainMenu.Frame2
if TB3.Visible == false then
TB4.Visible = true
end


TB()
TB2()
TB3()
TB4()

script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.Parent.Visible = false
local tools = game.ReplicatedStorage.Tools:Clone()
tools = tools:GetChildren()
for i,v in pairs(tools) do
v.Parent = game.Players.LocalPlayer.Backpack
game.Players.LocalPlayer.Team = game.Teams["Waiting for Round"]
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Workspace.WFRSpawn.Position) + Vector3.new(0, 2, 0)
end
end)
Report Abuse
Dackus is not online. Dackus
Joined: 01 Aug 2011
Total Posts: 81
25 Aug 2016 09:21 PM
No one?

When I go into play the frame2 does not come visible when frame1 goes invisible.
Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:30 PM
I will help you but can you plz help me with mine. How do you make this so its for points? This is a developer product.

if productId == 37835235 then
while not cashmoney do end
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if cashmoney then
cashmoney.Value = cashmoney.Value + 1000
end
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:31 PM
Magic, when a player clicks the buy button (prompt purchase) it should bring up the prompt purchase asking the player do they want to buy it, then they click buy with robux and it awards them cash, that?

http://wiki.roblox.com/index.php?title=Developer_product


Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:33 PM
No when someone buys the developer product it rewards them with money. The currency on the script is money but idk how to change it to points?
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:34 PM
I JUST LINKED IT TO YOU LOOL

If you can make a game that has 3 million visits, learn to script or hire one.


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:35 PM
https://www.youtube.com/watch?v=UnU-w7_qmTA

This could help?


Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:35 PM
ya but it doesnt explain how to change the currency
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:38 PM
...yes it does




Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:40 PM
--LocalScript in StarterPack
-- setup local variables
local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton
local productId = yours here

-- when player clicks on buy brick prompt him/her to buy a product
buyButton.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)




--Script in BuyButton part
-- setup local variables
local MarketplaceService = Game:GetService("MarketplaceService")
############################################################################################################
-- define function that will be called when purchase finished
MarketplaceService.ProcessReceipt = function(receiptInfo)

-- find the player based on the PlayerId in receiptInfo
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then


-- check which product was purchased
if receiptInfo.ProductId == productId then

-- handle purchase
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1000
end
end
end

-- record the transaction in a Data Store
local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_purchase_" .. receiptInfo.ProductId
ds:IncrementAsync(playerProductKey, 1)

-- tell ROBLOX that we have successfully handled the transaction
return Enum.ProductPurchaseDecision.PurchaseGranted
end


Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:41 PM
ok if i have this then what do i do?

if productId == 37835235 then
while not cashmoney do end
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if cashmoney then
cashmoney.Value = cashmoney.Value + 1000
end
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:41 PM
It got hashtagged, poor filter system.

Go here and scroll down:

http://wiki.roblox.com/index.php?title=Developer_product


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:42 PM
if productId == 37835235 then
while not cashpoints do end
local cashpoints = game.ServerStorage.PlayerPoints:FindFirstChild(player.Name)
if cashpoints then
cashpoints.Value = cashpoints.Value + 1000
end

Just change it all to points, should work.


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:42 PM
http://wiki.roblox.com/index.php?title=Developer_product#Exercise


Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:50 PM
if productId == 37835235 then
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if cashmoney then
cashmoney.Value = cashmoney.Value + 1000
end
Report Abuse
Objectly is not online. Objectly
Joined: 18 Jul 2016
Total Posts: 210
25 Aug 2016 09:55 PM
I don't like steaks, simply because they go rotten when you leave them to fend for themselves. Look at how they polluted the front page with disgusting free models.
Report Abuse
MagicSteak is not online. MagicSteak
Joined: 06 Apr 2009
Total Posts: 919
25 Aug 2016 09:56 PM
your script did not work
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
25 Aug 2016 09:57 PM
Go to the link I posted. It'll help, but if you're too stupid to understand, then..


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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