sckum
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 570 |
|
|
| 27 Oct 2011 07:43 PM |
when bullet hit function something something wait(0.5) untag(humanoidblah) ball.Parent = nil end
So when a bullet hits something it bounces. They COULD just use
when bullit hit blah stupid justanexample ball.Parent = nil wait(0.5) utag(humanonlol) end |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2011 07:44 PM |
"wait(0.5)"
that's the real fail there. |
|
|
| Report Abuse |
|
|
micol2242
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 4732 |
|
| |
|
sckum
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 570 |
|
|
| 27 Oct 2011 08:55 PM |
> "wait(0.5)" that's the real fail there.
im 13 and what is this |
|
|
| Report Abuse |
|
|
HotThoth
|
  |
 |
| Joined: 24 Aug 2010 |
| Total Posts: 1176 |
|
|
| 28 Oct 2011 01:57 PM |
| Probably an old script-- seems much easier to use the DebrisService for any tags you're inserting into the Humanoid. Also... why is bullet bouncing bad? Ricochet love! <3 |
|
|
| Report Abuse |
|
|
sncplay42
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 11891 |
|
|
| 28 Oct 2011 02:10 PM |
@Suggested replacement:
when bullit hit blah stupid justanexample ball.Parent = nil -- The script just killed itself wait(0.5) -- never resumes because the script is gone utag(humanonlol) end
Which is one of the reasons to use Debris like HotThoth said.
Also, I saw this in a gear once:
tagHumanoid(humanoid) humanoid:TakeDamage(damage) untagHumanoid(humanoid)
Which never gave the system time to run the Died event. (Which is funny actually, because lots of events DO run their handlers immediately when the thing that triggers the event happens. Maybe there's a wait in the KO handling script or something.) |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2011 02:12 PM |
"So when a bullet hits something it bounces. They COULD just use
when bullit hit blah stupid justanexample ball.Parent = nil wait(0.5) utag(humanonlol) end"
or they could use
bullet.Touched:connect(function() game:service("Debris"):AddItem(bullet, 0); end)
olol |
|
|
| Report Abuse |
|
|
sckum
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 570 |
|
|
| 28 Oct 2011 03:09 PM |
| It's in halloween paintball 2011. Seriously, I was testing it and the bullets bounced and disappeared after like 0.5 seconds... |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2011 03:44 PM |
| That's also why it lags badly on that server if it bounces and there is 20+ people playing and shooting so that increases lag they should've removed the bounce. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2011 04:27 PM |
@Soul: bullet.Touched:connect(Spawn(.5, function() game:service("Debris"):AddItem(bullet, 0); end))
Now we have bouncing bullets. Pwnt. |
|
|
| Report Abuse |
|
|