|
I'm trying to make it to wait 22 seconds after teleporting the zombies in their positions. They don't work and i would like you to help me :)
Here it is:
wait(22)
game.Workspace.Zombie:MoveTo(Vector3.new(-6.8, 12.537, -82))
game.Workspace.Zombie1:MoveTo(Vector3.new(-2.28, 12.537, -93.75))
game.Workspace.Zombie2:MoveTo(Vector3.new(-6.8, 12.537, -99.21)) |
|
Mitko0o1Join Date: 2010-11-30 Post Count: 5725 |
The script has no errors, but you need more waits:
wait(22)
game.Workspace.Zombie:MoveTo(Vector3.new(-6.8, 12.537, -82))
wait(22)
game.Workspace.Zombie1:MoveTo(Vector3.new(-2.28, 12.537, -93.75))
wait(22)
game.Workspace.Zombie2:MoveTo(Vector3.new(-6.8, 12.537, -99.21))
|
|
Mitko0o1Join Date: 2010-11-30 Post Count: 5725 |
Oh they are different zombies... Then I have no idea why it doesn't work. |
|
InfocusJoin Date: 2011-04-28 Post Count: 8022 |
Try increasing the Y axis.
Instead of 12.5, try adding 5 to it.
It may just be falling off the map |
|
|
|
|
It works with out the wait() ? |
|
|
@cow
Yes, it does. But when i add wait(22) it doesn't. |
|
|
VemericJoin Date: 2012-12-05 Post Count: 467 |
lol if you want it to wait 22 seconds AFTER the zombies spawn, put the wait at the END. cos with ur script it will take 22 seconds to spawn the zombies. |
|
|
@Ve
I want it to wait 22 seconds to teleport the zombies, not after. |
|
|
Sorry about the typo in the post, it should've said before not after. |
|
VemericJoin Date: 2012-12-05 Post Count: 467 |
okay whats the output |
|
|
HTTP 403 (HTTP/1.1 403 Forbidden): - path: user/multi-following-exists,
json: {"otherUserIds":[48609885],"userId":48609885}
ServerSocialScript Loaded
19:53:35.094 - Torso is not a valid member of Model
19:53:35.095 - Script 'Workspace.Zombie2.Follow', Line 29
19:53:35.095 - Stack End
19:53:35.112 - Torso is not a valid member of Model
19:53:35.112 - Script 'Workspace.Zombie2.Script', Line 39
19:53:35.113 - Stack End
19:53:35.113 - Torso is not a valid member of Model
19:53:35.114 - Script 'Workspace.Zombie.Follow', Line 29
19:53:35.115 - Stack End
19:53:35.130 - Torso is not a valid member of Model
19:53:35.131 - Script 'Workspace.Zombie.Script', Line 39
19:53:35.131 - Stack End
19:53:35.147 - Torso is not a valid member of Model
19:53:35.149 - Script 'Workspace.Zombie1.Follow', Line 29
19:53:35.150 - Stack End
19:53:35.150 - Torso is not a valid member of Model
19:53:35.151 - Script 'Workspace.Zombie1.Script', Line 39
19:53:35.151 - Stack End |
|
|
|
Try startin with wait(1) to see if it's the actual wait function that's messing the script up or if it is the interval. Idk I'm just throwing anything out to try and help :P |
|
|
@cow
With wait(1) all of the zombies teleport to their position, but when 22 they don't. |
|
|
I guess the interval isn't working. But i really need it to be 22 seconds after the message is displaying the text "Look out! Zombies!". I'll try to lower it down a little bit. |
|
|
The zombies only teleport if i put wait(1) and wait(2) but if i increase the number is doesn't. I don't know how to fix this. Any help? |
|