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 » Game Design
Home Search
 

Re: Not reopening (more read-able)

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Nov 2014 05:28 PM
Removed most of the irrelevant stuff

co = coroutine.create(function()
while wait() do
for _, v in pairs(game.Players:GetPlayers()) do
local vchar = v.Character
local mag = (vchar.Torso.Position - trigger.Position).magnitude
if mag < 7 and sp.Door.Rotation.Y == 0 and db then
db = false
print("Open!")
opendoor()
wait(2)
closedoor()
db = true
print(db)
end
end
end
end)

this IS being called, when I get in range, it opens, waits two seconds and closes. But when I try and do it again, nothing happens. and 'Open!' doesn't print. And when I print db, it prints as true.

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
19 Nov 2014 05:41 PM
b1

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Nov 2014 03:53 AM
b2

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Nov 2014 03:54 AM
and yes, the rotation y is 0

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Nov 2014 05:52 AM
b3

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
20 Nov 2014 06:12 AM
Apparently this is the hardest thing in the world to fix.

Hibachi Man makes his daring escape, The Barbecue Belly Slide!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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