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: Hi yes, I can't script. Can someone help with this problem?

Previous Thread :: Next Thread 
Vurse is not online. Vurse
Joined: 15 Apr 2013
Total Posts: 826
06 Jan 2016 01:40 AM
So, I'm trying to make Speed Run 4 FE.. I could do it now, but it breaks the gamepasses- if someone owns a gamepass, they don't receive the benefit. I assume the problem is in this script- which is designated to each gamepass. Can someone make it FE compatible for me? I'll give a couple thousand robux or whatever


ID = script.Parent:WaitForChild("ID").Value
NAME = script.Parent:WaitForChild("NameOfGear").Value
MS = game:GetService("MarketplaceService")

P = script.Parent.Parent.Parent.Parent.Parent
function useeffect()
if MS:PlayerOwnsAsset(P,ID) then

repeat C = P.Character wait(1) until C ~= nil

local gear = game.ServerStorage:FindFirstChild(NAME):clone()
gear.Parent = P:WaitForChild("Backpack")
end
end

script.Parent.MouseButton1Click:connect(function()
if not MS:PlayerOwnsAsset(P,ID) then
MS:PromptPurchase(P,ID,false,Enum.CurrencyType.Default)
useeffect()
end
end)
useeffect()
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
06 Jan 2016 01:54 AM
"P = script.Parent.Parent.Parent.Parent.Parent" Means it's in the startergui or starterplayer. Are you sure you have the right amount of parents.

My advice would be to use a local script and just define LocalPlayer
local player = game.Players.LocalPlayer



Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Jan 2016 01:57 AM
If it is in a local script (which is probably is), you can't access ServerStorage and I don't know if PromptPurchase actually works client-sided.

If this is in a normal script, I don't think you can actually run these scripts in PlayerGui/whatever.
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
06 Jan 2016 01:58 AM
I can imagine a lot of fame-farmers coming in for this roblox celeb. Q.Q
Report Abuse
Vurse is not online. Vurse
Joined: 15 Apr 2013
Total Posts: 826
06 Jan 2016 01:59 AM
This works without FE. It only stops working when FE is enabled. Can someone make a script for me that would work?
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
06 Jan 2016 01:59 AM
@Harry. I don't believe in virtual fame.



Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
06 Jan 2016 02:01 AM
Well, a lot of scripters do, if you checked Vurse's last post on this forum. Normally on a post like this, everyone would go crazy and be like 'gtfo, you can't script, we ain't giving u free stuff huehuehue'. But last time Vurse(rich, famouse person) posted something, everyone wanted to volunteer to be his slave, it's pathetic how some people act.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
06 Jan 2016 02:02 AM
-- Directions: Put ServerStorage items in ReplicatedStorage
-- Local Script

local Id = 0 -- just put the id here
local Name = "Name" -- just put the name here
local Marketplace = game:GetService("MarketplaceService")
local Replicated = game:GetService("ReplicatedStorage")
local Player = game:GetService("Players").LocalPlayer

function UseEffect()
if Marketplace:PlayerOwnsAsset(Player, ID) and Player.Character then
Replicated[Name]:clone().Parent = Player.Backpack
return true
end
end
UseEffect()

script.Parent.MouseButton1Click:connect(function()
if not UseEffect() then
Marketplace:PromptPurchase(Player, ID)
end
end)
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
06 Jan 2016 02:02 AM
Lmao.





Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Jan 2016 02:02 AM
"This works without FE. It only stops working when FE is enabled. Can someone make a script for me that would work?"
So is this in a normal script in like, StarterGui or what? There are a couple of reasons why it might not work
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
06 Jan 2016 02:05 AM
Why would you even want to FE speed run, exploiting would be the only thing to do in there except for actually finishing the easy obby L0L.
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