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: Need Help (complete novice at scripting)

Previous Thread :: Next Thread 
ReadyMatt is not online. ReadyMatt
Joined: 09 Dec 2009
Total Posts: 5
06 Feb 2013 08:08 AM
I have used a script that starts a fire and makes it spread + removes the flames after a certain time. But it still kills players should they touch any of the blocks that were on fire. How do I stop this from happening?
Report Abuse
ReadyMatt is not online. ReadyMatt
Joined: 09 Dec 2009
Total Posts: 5
06 Feb 2013 08:59 AM
correction, the script does not remove the fire, which is killing the players.
Report Abuse
OfficialPyroGaming is not online. OfficialPyroGaming
Joined: 27 Dec 2012
Total Posts: 399
06 Feb 2013 10:01 AM
Post the script so we can look at it.
Report Abuse
ReadyMatt is not online. ReadyMatt
Joined: 09 Dec 2009
Total Posts: 5
06 Feb 2013 10:10 AM
function onT(hit)
if hit.Name ~= "Base" then
if hit.Name == "Burning" then return end
hit.Name = "Burning"
hit.BrickColor = BrickColor.new("Really black")
local f = script.Parent.Fire:clone()
f.Parent = hit
f.Size = 3 + hit:getMass() * 0.1
wait(20)
local r = script.Parent.Remover:clone()
r.Parent = hit
local s = script:clone()
s.Parent = hit
hit:breakJoints()
hit.Anchored= false
hit.Velocity = Vector3.new(math.random(-5,5),5,math.random(-5,5))
end
end
script.Parent.Touched:connect(onT)
Report Abuse
ReadyMatt is not online. ReadyMatt
Joined: 09 Dec 2009
Total Posts: 5
06 Feb 2013 10:11 AM
and this is the remover bit mentioned in the above script

wait(script.Parent:getMass()*3)
script.Parent:remove()


Its not actually my script so I dont understand 100% how it works but I assume its not removing the fire
Report Abuse
0ultimoKILLER is not online. 0ultimoKILLER
Joined: 31 Aug 2011
Total Posts: 1542
06 Feb 2013 11:23 AM
try
script.Parent:Destroy()
if that dosent work try
script.Parent:Remove()
Report Abuse
ReadyMatt is not online. ReadyMatt
Joined: 09 Dec 2009
Total Posts: 5
06 Feb 2013 11:49 AM
Ok, I'm pretty sure I've completely broken it now, if I make it a friends only personal server, would anyone be willing to fix it for me? I would like there to be flames (which is what I've got but I don't want the blocks to kill people that touch them, just the flames to damage them. Can anyone help me with this?
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