|
| 03 Oct 2013 07:28 PM |
The script works except it doesn't change my health. This is in a LocalScript.
function GodMode(Player) print("Called")
Player.Character.Humanoid.MaxHealth = math.huge end
Output: > Called |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:30 PM |
Call the function/connect
♫♪ repeat wait() until game.Players.FrozenSmite.HasALife == true ♪♫ |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:31 PM |
Nvm lol
♫♪ repeat wait() until game.Players.FrozenSmite.HasALife == true ♪♫ |
|
|
| Report Abuse |
|
|
| |
|
Xeptix
|
  |
| Joined: 14 Mar 2013 |
| Total Posts: 1115 |
|
|
| 03 Oct 2013 07:34 PM |
| He does call it, and Player is defined... |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Oct 2013 07:35 PM |
When he calls it though, what is the argument he puts in?
GodMode(game.Players.LocalPlayer)? |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:35 PM |
Here is more of the script: self = game.Players.LocalPlayer
function GodMode(Player) print("Called")
Player.Character.Humanoid.MaxHealth = math.huge end
GodMode(self) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Xeptix
|
  |
| Joined: 14 Mar 2013 |
| Total Posts: 1115 |
|
|
| 03 Oct 2013 07:37 PM |
Are you people blind?!
He clearly said "This is in a LocalScript." |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:38 PM |
Where is it located? Is this connected to an event, or does it just run whenever it's created?
If it just runs without waiting for a certain event to happen, try putting repeat wait() until game.Players.LocalPlayer at the top. |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:39 PM |
| Oops, I didn't see that part where he mentioned it was in a LocalScript at first post, sorry, |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2013 07:39 PM |
| Well if I posted the entire script it's over 1K lines. :P Its the main script for my game. |
|
|
| Report Abuse |
|
|