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 |
|
|
|
| 29 Sep 2014 04:47 PM |
| add prints to see whats going at the hit function thing |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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 |
|
|
| |
|
|
| 29 Sep 2014 05:24 PM |
| paper and door collision not working solve that |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 29 Sep 2014 05:24 PM |
| Lol flames we can tell dude |
|
|
| Report Abuse |
|
|