Nothing Appears in the Output it stops at the changed function. It doesnt fire what so ever.

maxxp = script.Parent.Parent.XP2
script.Parent.Changed:connect(function()
	maxxp.Value = maxxp.Value * 2
if script.Parent.Parent.Parent.Character ~= nil then
if	script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid") then
		local humanoid = script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid")
		humanoid.MaxHealth = 80+20*script.Parent.Value
end
end
end)

1 comment

0

You should probably use a variable for script.Parent.Parent at the least and tab your code properly; it will look much, much cleaner. Please also edit your question to give it a more specific answer -- it should reflect just YOUR question, not every other one posted this site.