arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:17 PM |
So... I need the game.Workspace.Player.Name in a variable that changes everytime in a new name :/ Any help? |
|
|
| Report Abuse |
|
|
arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:20 PM |
This is the issue :/ player = game.Players.LocalPlayer game.Workspace.player.Head.Transparency = 0.1 game.Workspace.player.Humanoid.WalkSpeed = 16 + 4 game.Workspace.player.Humanoid.Health = 100 game.Workspace.player.Humanoid.MaxHealth = 1000 |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2015 12:22 PM |
local player = game.Players.LocalPlayer local character = player.Character print(character.Torso.Position) |
|
|
| Report Abuse |
|
|
arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:25 PM |
Output : 21:24:48.876 - player is not a valid member of Workspace 21:24:48.876 - Script 'Workspace.SSJ', Line 24 - global ssj1 21:24:48.877 - Script 'Workspace.SSJ', Line 97 21:24:48.877 - Stack End |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2015 12:26 PM |
Well it says line 24
post the script |
|
|
| Report Abuse |
|
|
arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:30 PM |
Part of Script ... function ssj1() local player = game.Players.LocalPlayer local character = player.Character print(character.Torso.Position) game.Workspace.player.Head.Transparency = 0.1 game.Workspace.player.Humanoid.WalkSpeed = 16 + 4 game.Workspace.player.Humanoid.Health = 100 game.Workspace.player.Humanoid.MaxHealth = 1000 if game.Workspace.player.Humanoid.Health < game.Workspace.Player.Humanoid.MaxHealth then game.Workspace.player.Humanoid.Health = game.Workspace.Player.Humanoid.MaxHealth end end |
|
|
| Report Abuse |
|
|
arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:37 PM |
| Please help am new to Lua ... |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2015 12:38 PM |
use your variables my god. Thats the entire reason why I told you this. SO you would replace it yourself
local player = game.Players.LocalPlayer local character = player.Character local humanoid = characrer.Humanoid character.Head.Transparency = 0.1 humanoid.WalkSpeed = 16 + 4 humanoid.Health = 100 humanoid.MaxHealth = 1000 if humanoid.Health < humanoid.MaxHealth then humanoid.Health = humanoidd.MaxHealth end |
|
|
| Report Abuse |
|
|
arshad145
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 98 |
|
|
| 24 Oct 2015 12:41 PM |
Thank you :D am sorry really new to Lua ...Thamks though :D New Knowledge :D |
|
|
| Report Abuse |
|
|
| |
|