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: Can anyone solve this problem?

Previous Thread :: Next Thread 
arshad145 is not online. 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 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
24 Oct 2015 12:22 PM
local player = game.Players.LocalPlayer
local character = player.Character
print(character.Torso.Position)
Report Abuse
arshad145 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
24 Oct 2015 12:26 PM
Well it says line 24

post the script
Report Abuse
arshad145 is not online. 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 is not online. arshad145
Joined: 25 Feb 2014
Total Posts: 98
24 Oct 2015 12:37 PM
Please help am new to Lua ...
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
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 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
24 Oct 2015 12:43 PM
no problem :)
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