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
|
  |
| Joined: 22 Feb 2011 |
| Total Posts: 681 |
|
|
| 07 Apr 2015 10:14 AM |
| Be more specific. It's your first post. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 2542 |
|
|
| 07 Apr 2015 11:07 AM |
| just use Touched for morphs |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|