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: Can anyone proof read this for me?

Previous Thread :: Next Thread 
ryan123777 is not online. ryan123777
Joined: 14 Dec 2010
Total Posts: 1615
11 Jul 2013 11:52 PM
function hasPass(player,id)
if game:GetService("GamePassService"):PlayerHasPass(player,id) then
return true
else
return false
end
end

id = 92997034
game.Players.Touched:connect(function(player)
if hasPass(player,id) then
print(player.Name .. " has the GamePass!")
Door.Transparency = 0.4
Door.CanCollide = false
wait(4)
Door.CanCollide = true
Door.Transparency = 0
else
print(player.Name .. " doesn't have the GamePass!")
human.Health = 0
script.VIP:Clone().Parent = ply.PlayerGui
end
end)

game.Players.Touched:connect(onTouch)



-=[ 5 years of graphic designing experience ]=-
Report Abuse
ryan123777 is not online. ryan123777
Joined: 14 Dec 2010
Total Posts: 1615
11 Jul 2013 11:54 PM
B1

-=[ 5 years of graphic designing experience ]=-
Report Abuse
ryan123777 is not online. ryan123777
Joined: 14 Dec 2010
Total Posts: 1615
11 Jul 2013 11:58 PM
No one likes me :(

-=[ 5 years of graphic designing experience ]=-
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
12 Jul 2013 12:20 AM
"game.Players.Touched"

LOL.
Report Abuse
ryan123777 is not online. ryan123777
Joined: 14 Dec 2010
Total Posts: 1615
12 Jul 2013 12:36 AM
Yeah. I fixed that.

-=[ 5 years of graphic designing experience ]=-
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
12 Jul 2013 12:43 AM
game.Players.Touched:connect(function(player) << Function connected

game.Players.Touched:connect(onTouch) << Undefined function, wat

Door isnt defined

human isnt defined

ply isnt defined

.Touched does not return player as an argument

boop
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