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 » Scripters
Home Search
 

Re: roblox cant even script

Previous Thread :: Next Thread 
sckum is not online. 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
xSIXxStorage is not online. xSIXxStorage
Joined: 22 Aug 2010
Total Posts: 1811
27 Oct 2011 07:44 PM
"wait(0.5)"

that's the real fail there.
Report Abuse
micol2242 is not online. micol2242
Joined: 13 Nov 2010
Total Posts: 4732
27 Oct 2011 07:44 PM
i like you
Report Abuse
sckum is not online. 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 is not online. HotThoth
Forum Moderator
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 is not online. 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
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
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 is not online. 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
GeniusRobot is not online. GeniusRobot
Joined: 14 Oct 2011
Total Posts: 194
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
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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