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: Sword OnTouched

Previous Thread :: Next Thread 
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
21 Jan 2012 04:54 PM
I've never figured out why this is, the script works, but its a weapon, and according to the script, only i can hold it, which is not what i wanted. this is the part that's messing with me:

game.Workspace.wow75["The Warlord's claw"].Touched(OnTouched)

I need to wow75 part to change depending on who is holding it...
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
21 Jan 2012 05:07 PM
Uses super strength to lift the post to the top of the page...
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
21 Jan 2012 05:40 PM
:'( I feel sad now...
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jan 2012 05:13 PM
Pwease help?
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
25 Jan 2012 05:21 PM
HEEYYY... It would help if you would actually put a script that we can fix :D

「TheNewScripter」
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jan 2012 05:30 PM
That is a script :/, but if its the whole script you want here it is:

function OnTouched(hit)
hit.Parent.Humanoid.WalkSpeed = 8
hit.Parent.Humanoid.MaxHealth = 50
hit.Parent.Humanoid.Health = 150
wait(10)
hit.Parent.Humanoid.WalkSpeed = 16
hit.Parent.Humanoid.MaxHealth = 100
hit.Parent.Humanoid.Health = 75
wait(3)
end

game.Workspace.wow75["The Warlord's Claw"].Handle.Touched:connect(OnTouched)
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
25 Jan 2012 05:34 PM
connection = game.Workspace.wow75:findFirstChild("The Warlord's Claw").Handle
function OnTouched(hit)
hit.Parent.Humanoid.WalkSpeed = 8
hit.Parent.Humanoid.MaxHealth = 50
hit.Parent.Humanoid.Health = 150
wait(10)
hit.Parent.Humanoid.WalkSpeed = 16
hit.Parent.Humanoid.MaxHealth = 100
hit.Parent.Humanoid.Health = 75
wait(3)
end
connection .Touched:connect(OnTouched)
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jan 2012 05:37 PM
Doesn't work unfortunately, i want the weapon to be able to be used by EVERYONE, not just me, the script itself works fine, but only i can use it, nobody else.
Report Abuse
TheWhiteAngle is not online. TheWhiteAngle
Joined: 31 Dec 2011
Total Posts: 435
25 Jan 2012 05:41 PM
That because it only work on you when you wear it, make it a tool that when it been held the script imiddetly would work. anfurtently i dont know what function is that :=3
Sorry for best spelling but hop i solved you probloms :=p
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jan 2012 05:44 PM
Well, you tried, and that's, like, +20 points, but, that was the reason i posted this, i couldn't figure out how to fix 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