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
 

Help me edit this script

Previous Thread :: Next Thread 
centero is not online. centero
Joined: 17 Apr 2012
Total Posts: 35
06 Feb 2014 07:58 AM
debounce = 0

function equipped(mouse)
function Shoot()
if debounce == 0 then
debounce = 1
if mouse.Target ~= nil then
if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" then
mouse.Target.Parent.Humanoid:TakeDamage(10)
elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then
mouse.Target.Parent.Parent.Humanoid:TakeDamage(20)
elseif mouse.Target.Name == "Head" then
mouse.Target.Parent.Humanoid:TakeDamage(20)
end
end
script.Parent.Hole.Flash.Enabled = true
script.Parent.GripUp = Vector3.new(0,1,-0.1)
wait(0.1)
script.Parent.Hole.Flash.Enabled = false
script.Parent.GripUp = Vector3.new(0,1,0)
wait(0.9)
debounce = 0
end
end
mouse.Button1Down:connect(Shoot)
end

script.Parent.Equipped:connect(equipped)

Help me edit this script to make it
Non-Team-Killable,
The team's name is blue
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
06 Feb 2014 08:06 AM
debounce = 0

function equipped(mouse)
function Shoot()
if debounce == 0 then
debounce = 1
if mouse.Target ~= nil and then
if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" and mouse.Target.Torso.BrickColor~=BrickColor.new(game:GetService("TeamService"):findFirstChild("blue").TeamColor then
mouse.Target.Parent.Humanoid:TakeDamage(10)
elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then
mouse.Target.Parent.Parent.Humanoid:TakeDamage(20)
elseif mouse.Target.Name == "Head" and mouse.Target.Torso.BrickColor~=BrickColor.new(game:GetService("TeamService"):findFirstChild("blue").TeamColor then
mouse.Target.Parent.Humanoid:TakeDamage(20)
end
end
script.Parent.Hole.Flash.Enabled = true
script.Parent.GripUp = Vector3.new(0,1,-0.1)
wait(0.1)
script.Parent.Hole.Flash.Enabled = false
script.Parent.GripUp = Vector3.new(0,1,0)
wait(0.9)
debounce = 0
end
end
mouse.Button1Down:connect(Shoot)
end

script.Parent.Equipped:connect(equipped)

Help me edit this script to make it
Non-Team-Killable,
The team's name is blue
Report Abuse
GraniteSphere is not online. GraniteSphere
Joined: 09 Aug 2012
Total Posts: 237
06 Feb 2014 08:07 AM
I dislike people pulling random stuff from free models then expect us to fix it up for you.
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
06 Feb 2014 08:09 AM
@Gran Me too, but I can't tell if it's free model unless someone tells me, or I have used it before. (I only used Free Models when. Was a noob)
Report Abuse
centero is not online. centero
Joined: 17 Apr 2012
Total Posts: 35
06 Feb 2014 08:52 AM
Yo,
I made this with some help.
I didn't take some free gun model,
Plus you can tell it's simple
Report Abuse
GraniteSphere is not online. GraniteSphere
Joined: 09 Aug 2012
Total Posts: 237
06 Feb 2014 08:54 AM
Yeah it is, still i doubt you had any hand in it.
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