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: This script won't work, any help?

Previous Thread :: Next Thread 
Maltese202 is not online. Maltese202
Joined: 27 Jun 2012
Total Posts: 3474
20 Apr 2015 10:38 AM
--It is supposed to be so only a certain team can go through a wall to prevent instant spawn killing.
Door = script.Parent
Player = game.Players.SelectFirstChild

function onTouched()
if Player.Teams.Bright_blue_Team.onTouched.Door == true then
Door.CanCollide = false
wait(1)
Door.CanCollide = true
if Player.Teams.Bright_blue_Team.onTouched.Door == false then
wait(6547464390876439) --What I do when I spam numbers.
Door.CanCollide = false
wait(0.001)
Door.CanCollide = true
end
end
end


Door:Connect(onTouched)

--Can you tell me what is wrong with the script.

Accept your fate or accept the Curb Stomp
Report Abuse
TrustMeImRussian is not online. TrustMeImRussian
Joined: 19 May 2011
Total Posts: 4772
20 Apr 2015 12:34 PM
Because "wait(6547464390876439)" will mean when a red team mamber or something touches the door, it will open up until 6547464390876439 where then it'll become unenterable. Make it a shorter number, maybe (.1) or nothing.
Report Abuse
Maltese202 is not online. Maltese202
Joined: 27 Jun 2012
Total Posts: 3474
20 Apr 2015 12:42 PM
@TrustMeImRussian

I worked it out, I posted on GM and they worked it out quicker.

Accept your fate or accept the Curb Stomp
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