I am using script to change the value by time and use it in other script. But It doesn't result as I expected. Here an example:
cube1
health = game.Players.LocalPlayer.Character.Humanoid.Health -----> 100 a = script.Parent b = a.NumberValue.Value while true do b = health print (b) -----> 0 end
cube2
health = game.Workspace.cube1.NumberValue.Value print (health) ---> 0
oof
Try changing cube 1 to:
local health = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid", true).Health -----> 100 local a = script.Parent.NumberValue while wait() do a.Value = health print(a) -----> 100 end