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: Gamepass problem

Previous Thread :: Next Thread 
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:33 PM
I need a script that would make a player jump from a seat if they do not own a gamepass, the script below won't work. It simply lets anyone use the car even though it is correct (I think). If anyone finds the reason it is not working, it would be a real help.
Report Abuse
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
11 Sep 2015 05:34 PM
"Script below"???
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:35 PM
local passId = 0000000
function isAuthenticated(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end
script.Parent.VehicleSeat.ChildAdded:connect(function(obj)
if game.Players:FindFirstChild(obj.Part1.Name) then
plr = game.Players:FindFirstChild(obj.Part1.Name)
end
if plr and not isAuthenticated(plr) then
plr.Character.Humanoid.Jump = true
print(plr.Name.." is not authorized to use this vehicle")
end
end)
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:35 PM
My bad, thought I pasted it and rushed to post it lol
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:41 PM
bump
Report Abuse
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
11 Sep 2015 05:42 PM
obj.Part1.Name is Part1 ?
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:44 PM
Do you mean that I need to rename the seat part1?
Report Abuse
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
11 Sep 2015 05:45 PM
what happens when you print obj.Name?
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 05:47 PM
Not sure, I only edited parts of the wiki script.
Report Abuse
spacerock7 is not online. spacerock7
Joined: 30 Aug 2013
Total Posts: 83
11 Sep 2015 06:03 PM
anyone?
Report Abuse
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
11 Sep 2015 06:13 PM
local passId = 252580855

function isAuthenticated(player)
print("Got info")
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end

script.Parent.VehicleSeat.ChildAdded:connect(function(obj)
if game.Players:FindFirstChild(obj.Part1.Parent.Name) then
plr = game.Players:FindFirstChild(obj.Part1.Parent.Name)
end
if plr and not isAuthenticated(plr) then
plr.Character.Humanoid.Jump = true
print(plr.Name.." is not authorized to use this vehicle")
end
end)
Report Abuse
177117 is not online. 177117
Joined: 17 May 2010
Total Posts: 1366
11 Sep 2015 06:17 PM
^^
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
11 Sep 2015 06:24 PM
Don't use PlayerHasPass
Use MarketplaceServier:PlayerHasAsset


"You're all idiots"
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