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: Only works in Play Solo (Remote Event)

Previous Thread :: Next Thread 
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:41 PM
This is in a server script. There are no errors.

event.OnServerEvent:connect(function(Player)
print("FADSFA")
local NameGui = game.ReplicatedStorage.NameGui:Clone()
NameGui.Parent = Player.Character.Head
NameGui.HealthAndName.name.Text = Player.Name
Player.Character.Humanoid.Changed:connect(function()
NameGui.HealthAndName.HealthBar.Size = UDim2.new(0, Player.Character.Humanoid.Health/1.3, .5, 0)
print("LAWL")
end)
end)
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:42 PM
The first print prints, not the second.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
29 Jan 2015 08:44 PM
Nothing wrong on this end.
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:45 PM
game.Workspace.HealthBarManagment:FireServer(game.Players.LocalPlayer)

I know it's firing...
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
29 Jan 2015 08:46 PM
Nvm then.
Apparently the Humanoid.Changed isn't firing.
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:46 PM
Do you think it recognizes my Player variable?
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:52 PM
qqq
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 08:55 PM
I have confirmed character exists.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
29 Jan 2015 08:59 PM
Does Humanoid fire the Changed event when it gets damaged?
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 09:02 PM
I just found out Humanoid ONLY fires the changed when it died.
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 09:04 PM
I'm actually using HealthChanged right now, but it does the same thing.
It only fires on death.
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 09:26 PM
Is this a roblox problem?
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
29 Jan 2015 09:28 PM
It works without filtering enabled...
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
30 Jan 2015 09:34 AM
why ^
Report Abuse
affectless is not online. affectless
Joined: 28 Dec 2014
Total Posts: 1084
30 Jan 2015 09:44 AM
D:
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