Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

IntValue didn't being receive by scripts?

I was trying to make the health value down but I won't be update! and the original value is 10. when I test it the value is alr -4 but the value being print by the script is still stuck on 10!! HELP

if script.Parent.Health.Value == 10 then
	script.Parent.Grass1.Transparency = 0
	script.Parent.Grass1.Size = Vector3.new(.1,0.65,0.1)
elseif script.Parent.Health.Value >= 8 then
	print("level 2")
	script.Parent.Grass1.Size = Vector3.new(.1,0.93,0.1)
	script.Parent.Grass2.Transparency = 0
	script.Parent.Grass2.Size = Vector3.new(.1,0.7,0.1)
	wait(0.4)
	script.Parent.Grass3.Transparency = 0
	script.Parent.Grass3.Size = Vector3.new(.1,0.60,0.1)
end

while true and wait(1) do 
	print(script.Parent.Health.Value)
end

SOrry for broken english

2 comments

0

Where is that script located? If it's on the server then obviously the health variable won't update if you set it via the client

0

The script is located in workspace.Grass.script (Grass is a group)

1 answer

Nvm I use remote event with it and it work Thanks @TheRealJMHacker :))

This discussion is preserved as it was. New answers, comments, and votes are closed.