I had a script where it would wait a little under 3 minutes, and then explode. However, said script is broke, and I don't see what's wrong with it.
1 | wait( 160 ) |
2 | local x = Instance.new( "Explosion" ) |
3 | x.Position = script.Parent.Position |
4 | x.BlastRadius = 100 |
5 | x.BlastPressure = 10000000000000000000 |
What you have done wrong is that when an instance is created, its first parent is nil
(nothing), you need to set a parent for it and it should work just as perfect.
server script tho!
1 | wait( 160 ) -- 3 mins :o |
2 | local x = Instance.new( "Explosion" ) |
3 | x.Position = script.Parent.Position |
4 | x.BlastRadius = 100 |
5 | x.BlastPressure = 10000000000000000000 |
6 | x.Parent = game:GetService( "Workspace" ) |