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
 

How can I make/script this

Previous Thread :: Next Thread 
Wutnoob is online. Wutnoob
Joined: 28 May 2016
Total Posts: 2365
25 Nov 2017 07:28 PM
A gamepass that gives fire particles when you buy it
Report Abuse
Wutnoob is online. Wutnoob
Joined: 28 May 2016
Total Posts: 2365
25 Nov 2017 07:31 PM
bp
Report Abuse
Vulkarin is online. Vulkarin
Joined: 17 Mar 2013
Total Posts: 282
25 Nov 2017 07:35 PM
http://wiki.roblox.com/index.php?title=Game_pass#Giving_the_Game_Pass_an_effect


Report Abuse
Wutnoob is online. Wutnoob
Joined: 28 May 2016
Total Posts: 2365
25 Nov 2017 07:39 PM
vulk i dont get it
Report Abuse
Vulkarin is online. Vulkarin
Joined: 17 Mar 2013
Total Posts: 282
25 Nov 2017 07:43 PM
...okay im going to literally copy and change the wiki's code

local passId = 0000 --change this to your GamePass Id
local marketplaceService = game:GetService("MarketplaceService")

marketplaceService.PromptPurchaseFinished:connect(function(player,assetId,isPurchased)
if isPurchased then --if the player did pay
if assetId == passId then --if what they bought is the pass
print(player.Name .. " bought the pass (" .. passId .. ")")
flamey = Instance.new("ParticleEmitter",player.Character)
flamey.Name = "YAY U WASTED ROBUX"
end
end
end)


Report Abuse
Wutnoob is online. Wutnoob
Joined: 28 May 2016
Total Posts: 2365
25 Nov 2017 07:51 PM
vulk it didnt work
Report Abuse
WAHJH is not online. WAHJH
Joined: 10 Mar 2017
Total Posts: 1006
25 Nov 2017 08:37 PM
--put the tools inside the script and put the script inside ServerScriptService
--use a Script not a LocalScript and make sure to put the right gamepassid bellow:
local gpid=1234567--gamepassid
local Players=game:GetService"Players"
local a
do
local GamePassService=game:GetService"GamePassService"
function a(char)wait(.1)
local player=Players:GetPlayerFromCharacter(char)
if GamePassService:PlayerHasPass(player,gpid)then
for i,v in ipairs(script:GetChildren())do
v:Clone().Parent=player:FindFirstChildOfClass"Backpack"
end
end
end
end
Players.PlayerAdded:Connect(function(player)
local char=player.Character
if char then a(char)end
player.CharacterAdded:Connect(a)
end)
😉😉😉😉😉😉😉😉
Report Abuse
Wutnoob is online. Wutnoob
Joined: 28 May 2016
Total Posts: 2365
26 Nov 2017 10:42 AM
but I want it to give fire particles.
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