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 » Scripting Helpers
Home Search
 

Re: Need help !

Previous Thread :: Next Thread 
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 12:45 AM
my super jump script make me fly when someone resets


wait(2)



gpid = 180937633 --Game Pass ID

GPS = Game:GetService("GamePassService")
function respawned(char)
player = game.Players:FindFirstChild(char.Name)
print("Respawned")
if char:FindFirstChild("Head") ~= nil then
print("It's a Player!")
if GPS:PlayerHasPass(player, gpid) then
print("Has GPID")

p= game.Players:GetChildren()
for i= 1, #p do
b = Instance.new("BodyForce")
b.Parent = p[i].Character.Torso
b.force = Vector3.new(0,3000,0)


end
end
else
print("No GPID")
end
end


game.Workspace.ChildAdded:connect(respawned)

Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 12:48 AM
bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
05 Oct 2014 12:50 AM
Nice free model btw.

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if game:GetService('GamePassService'):PlayerHassPass(plr,180937633) then
print("Has the gamepass")
local b = Instance.new("BodyForce",char.Torso);b.force = Vector3.new(0,3000,0)
else
print("No gamepass")
end
end)
end)
Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 12:52 AM
i put 2 scripts together haha and thanks ^-^
Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 01:03 AM
its not working
Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 01:08 AM
01:04:44.015 - PlayerHassPass is not a valid member of GamePassService
01:04:44.017 - Script 'Workspace.Gamepass SuperJump', Line 3
01:04:44.018 - Stack End
Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 01:12 AM
bump
Report Abuse
EternalDubbz is not online. EternalDubbz
Joined: 10 Feb 2011
Total Posts: 891
05 Oct 2014 01:24 AM
it still makes me fly when another player joins
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
05 Oct 2014 05:37 AM
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if game:GetService('GamePassService'):PlayerHasPass(plr,180937633) then
print("Has the gamepass")
local b = Instance.new("BodyForce",char.Torso);b.force = Vector3.new(0,3000,0)
else
print("No gamepass")
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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