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: Why isn't this script firing?

Previous Thread :: Next Thread 
Noobegai is not online. Noobegai
Joined: 09 Jul 2011
Total Posts: 1536
29 Sep 2014 04:47 PM
times = Instance.new(("IntValue"), game.Workspace)
Paper = game.Workspace.Paper
clone = game.Lighting.MidnightMan:Clone()
papertoucheddoor = false
knockedtwentytwo = false
Paper.Touched:connect(function(hit)
starttheGame = game.Workspace.Paper.Decal.Texture == "http://www.roblox.com/asset/?id=180051715" and game.Workspace.Paper.SurfaceGui.ImageLabel.Image == "http://www.roblox.com/asset/?id=87773150" and knockedtwentytwo == true and papertoucheddoor == true and game.Lighting.TimeOfDay == 24
if hit.Name == "WoodenDoor" then
print("The paper has touched the door")
papertoucheddoor = true
end
end)
function onClicked(playerWhoClicked)
times.Value = times.Value + 1
print("player knocked")
if times.Value >= 22 then
print("the 22nd knock doth cometh")
knockedtwentytwo = true
end

end
function summonMidnight()
if starttheGame then
print("if it is working, this will show up")
clone.Parent = game.Workspace

wait()
wait() repeat until starttheGame
end
end
summonMidnight()
script.Parent.Touched:connect(Touched)
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
29 Sep 2014 04:47 PM
add prints to see whats going at the hit function thing
Report Abuse
Noobegai is not online. Noobegai
Joined: 09 Jul 2011
Total Posts: 1536
29 Sep 2014 04:53 PM
I did, when the paper touches the door, it prints "the paper has touched the door"
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
29 Sep 2014 04:56 PM
add a print before that.
Report Abuse
Noobegai is not online. Noobegai
Joined: 09 Jul 2011
Total Posts: 1536
29 Sep 2014 05:02 PM
When the function is called, I added a print, the print comes up in the output. I'm fine as far as collision between the paper and door goes, I think it is when the midnight man has to get clones is where the problems occur.
Report Abuse
extremeflames29 is not online. extremeflames29
Joined: 08 Jun 2011
Total Posts: 14854
29 Sep 2014 05:23 PM
[ Content Deleted ]
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
29 Sep 2014 05:24 PM
paper and door collision not working solve that
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
29 Sep 2014 05:24 PM
@guy with the halloween hat and shet. we know. you asked for 2 scripts without any knowledge of scripting. your basically a lazy mofo besh.
-UMADSTUDIO- the obvious troll is obvious
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
29 Sep 2014 05:24 PM
Lol flames we can tell dude
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