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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 06 Jan 2016 01:59 AM |
@Harry. I don't believe in virtual fame.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|