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 » Scripting Helpers
Home Search
 

Re: Hitted by fire?

Previous Thread :: Next Thread 
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
04 Nov 2011 10:05 AM
Is there a way to let something happen when a brick is hitten by fire?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:07 AM
Hitted and hitten?

if hit:findFirstChild("Fire") then --Change hit to your touched designation.

end
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
04 Nov 2011 10:10 AM
Yeah, sorry my fault :3

That makes it happen if a brick, with a child that called fire, hits it.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:11 AM
Well Fire cannot be outside a brick.
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
04 Nov 2011 10:14 AM
No, that's true, but my question was if I could let something happen if it is touched by fire.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:25 AM
Fire is an Affect not a part, so no, but you could use a proximity script.
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
04 Nov 2011 10:39 AM
f = Instance.new("Fire", Game.Workspace.Brick)
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
04 Nov 2011 10:39 AM
f = Instance.new("Fire", Game.Workspace.AbdallahBakri1234.Head)
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
04 Nov 2011 10:39 AM
That's creating fire... Btw 'game' is never with a capital...
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
04 Nov 2011 10:41 AM
You can't.
Try using magnitude for it to have the EFFECT of it hitting, though?

¤שׂøøŦ¤ The Rich Zombie ¤
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
04 Nov 2011 10:42 AM
Ok, thank you though...
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
07 Nov 2011 06:13 AM
f = Instance.new("Fire", game.Workspace.AbdallahBakri1234.Head)
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
07 Nov 2011 06:14 AM
@2WOOF2 He Can
also you should know my script work in Script Builder ONLY
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
07 Nov 2011 07:40 AM
script.Parent.Touched:connect(function(hit)
local plyr = hit.Parent
local hum = plyr:findFirstChild("Humanoid")
if hum == true then
local tors = hit.Parent:findFirstChild("Torso")
local fiah = Instance.new("Fire",tors)
for i = 1, 10 do
hum:TakeDamage(2)
end
end
end)
Report Abuse
LevelNoobX is not online. LevelNoobX
Joined: 18 Sep 2011
Total Posts: 565
07 Nov 2011 07:43 AM
db = false
script.Parent.Touched:connect(function(hit)
local plyr = hit.Parent
local hum = plyr:findFirstChild("Humanoid")
if hum and not db then
db = true
local tors = hit.Parent:findFirstChild("Torso")
local fiah = Instance.new("Fire",tors)
for i = 1, 10 do
wait(1)
db = false
hum:TakeDamage(2)
end end end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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