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
 

Not happens when its clicked

Previous Thread :: Next Thread 
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 Sep 2015 09:02 PM
I was testing to see if that worked
You can remove them yourself


#code return
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
13 Sep 2015 09:03 PM
@sen

I removed them and the script was the same as you wrote it

ends were on top of each other


#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
13 Sep 2015 09:07 PM
local productId = 26148174
local product2 = 26163592
script.Parent.MouseButton1Click:connect(function()
game:getService("MarketplaceService"):PromptProductPurchase(player, 26148174)
end)

local DS = game:getService("DataStoreService"):GetDataStore("PurchaseHistory")

DS.ProcessReciept = function(RI)
for i, player in ipairs(game.Players:getChildren()) do
if player.UserId == RI.playerId then
if RI.ProductId == productId then
game.Workspace.CHARACTER.Humanoid.Walkspeed * 2
elseif RI.ProductId == product2 then
player.Character.Health = 0
end
end
end

local playerProductKey = "player_" . . RI.PlayerId . . "_purchased_" . . RI.PurchaseId

PurchaseHistory.IncrementAsync[playerProductKey, 1)


return Enum.ProductPurchaseDecision.PurchaseGranted

end

that was the script

can you fix it please?

#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
13 Sep 2015 09:10 PM
can someone help pls


#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
13 Sep 2015 09:17 PM
sen

??


#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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