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: Diferent player health and walkspeed

Previous Thread :: Next Thread 
sanri1 is not online. sanri1
Joined: 30 Dec 2012
Total Posts: 7
07 Apr 2015 10:13 AM
I am making a server with dinosaurs morph and wondering if i can make diferent player health and walkspeed example a player that has trex morph have more health that the player that have a raptor morph but this one was more fast
Report Abuse
alvin1104 is not online. alvin1104
Joined: 22 Feb 2011
Total Posts: 681
07 Apr 2015 10:14 AM
Be more specific. It's your first post.
Report Abuse
Ulrond is not online. Ulrond
Joined: 23 Jun 2011
Total Posts: 11962
07 Apr 2015 10:21 AM
Do you already have a morph? Somewhere in there you could add code that goes something like

Player.Humanoid.Walkspeed = 30 -- Walkspeed
Player.Humanoid.MaxHealth = 200 -- Max Health
Player.Humanoid.Health = Player.Humanoid.MaxHealth -- Fills health to 200.
Report Abuse
sanri1 is not online. sanri1
Joined: 30 Dec 2012
Total Posts: 7
07 Apr 2015 10:43 AM
Yes i have alredy to many morphes I'll try it
Report Abuse
sanri1 is not online. sanri1
Joined: 30 Dec 2012
Total Posts: 7
07 Apr 2015 10:53 AM
Well i found a health script that are working but I still can not add more walkspeed
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
07 Apr 2015 10:56 AM
I got this post. Gimme a sec to write code and explain it.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
07 Apr 2015 10:58 AM
First off, you cannot just come here and essentially say "make me a script. I will explain how to make it to you and you can look at the wiki. Use if statements. (e.g. if a player touches a certain brick they are morphed into the dinosaur and game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20)

Simple as a small if statement with a smaller effect.
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
07 Apr 2015 11:02 AM
to change walkspeed

local player = game.Players.LocalPlayer.Character
if player:FindFirstChild("Humanoid") then
player.Humanoid.WalkSpeed = 20 --change 20 to the new walkspeed
end
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
07 Apr 2015 11:03 AM
Pro that would change to 20 no matter what the player was. If he is using touch morphs my way would work much better.
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
07 Apr 2015 11:07 AM
just use Touched for morphs
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
07 Apr 2015 11:08 AM
That is what is is using probably. He did say "dinosaur morph"
Report Abuse
Proxemics is not online. Proxemics
Joined: 30 Oct 2013
Total Posts: 2542
07 Apr 2015 11:11 AM
simply put this in a Touched function

local player = game.Players.LocalPlayer.Character
if player:FindFirstChild("Humanoid") then
local oldspeed = player.Humanoid.WalkSpeed
wait()
player.Humanoid.WalkSpeed = 20 --new walkspeed
oldspeed = player.Humanoid.WalkSpeed
end
Report Abuse
sanri1 is not online. sanri1
Joined: 30 Dec 2012
Total Posts: 7
07 Apr 2015 02:14 PM
After some tries i find a script that also work my novaraptor now are pretty fast
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