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: Can someone help me fix this glitch?

Previous Thread :: Next Thread 
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 08:25 PM
It all works until i reset, what am i doing wrong?

local player = game.Players.LocalPlayer
local passId = 507914790
local marketplaceService = game:GetService("MarketplaceService")
local gun = game.Lighting.GUN:Clone()

function isAuthenticated(player)
return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
end

script.Parent.ClickDetector.MouseClick:connect(function(player)
if isAuthenticated(player) then
gun.Parent = player.Backpack
else
game:GetService("MarketplaceService"):PromptPurchase(player, passId)
end
end)
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
18 Mar 2017 08:32 PM
delete the first line
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 08:33 PM
It keeps saying the parent property of gun is locked.
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 08:40 PM
hmm
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 10:01 PM
can i get a little helpo?
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 10:13 PM
aye oh!
Report Abuse
00doggie is not online. 00doggie
Joined: 30 Jul 2009
Total Posts: 337
18 Mar 2017 10:59 PM
dont delete the first line and have this line inside the MouseClick function

local gun = game.Lighting.GUN:Clone()
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
18 Mar 2017 11:06 PM
^ Write the new script for me please.
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
18 Mar 2017 11:09 PM
local player = game.Players.LocalPlayer local passId = ######### ##### ################## = ##################################### local gun = ######################### function isAuthenticated(player) return ############################################################# ####### end ############################################################### local gun = ######################### if isAuthenticated(player) then gun.Parent = player.Backpack else ############################################################ ####### end end) I don't know what this whole thread is really about but I decided to make the script for you xD Sorry if I got it wrong :/
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
18 Mar 2017 11:10 PM
pastebin-8a2G8i4e


Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
19 Mar 2017 12:18 AM
doesn't work, can someone help me please?
Report Abuse
00doggie is not online. 00doggie
Joined: 30 Jul 2009
Total Posts: 337
19 Mar 2017 12:23 AM

local player = game.Players.LocalPlayer
local passId = 507914790
local marketplaceService = game:GetService("MarketplaceService")


function isAuthenticated(player)
return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
end

script.Parent.ClickDetector.MouseClick:connect(function(player)
local gun = game.Lighting.GUN:Clone()
if isAuthenticated(player) then
gun.Parent = player.Backpack
else
game:GetService("MarketplaceService"):PromptPurchase(player,passId)
gun:Destroy()
end
end)

maybe this will work? I added a line
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
19 Mar 2017 12:25 AM
moans
Report Abuse
00doggie is not online. 00doggie
Joined: 30 Jul 2009
Total Posts: 337
19 Mar 2017 12:30 AM
uh ok well my last idea is that you should put the gun inside of replicatedstorage instead of lighting but after that I am completely out of ideas
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