What do you want to achieve? Keep it simple and clear!
I want to make the script below work.
What is the issue? Include screenshots / videos if possible!
The issue is I am not sure if the click detectors are broken or if my script is not working.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tested with the click detector using basic scripts, and they seem to be broken.
I used a simple print script and I got the error:
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
game.Workspace.head.ClickDetector.MouseClick:Connect(function()
local testing = character:WaitForChild("Testing")
if testing.Value == true then
if character.Humanoid.HeadScale.Value <= 2.5 then
character.Humanoid.HeadScale.Value = character.Humanoid.HeadScale.Value + .5
else
end
end
end)
end)
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
EDIT: I fixed the clicker, but the headscript is slightly wrong. It increases size not mattering what the value is.
you need to find the player first to change the scale what you would do is add
:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) then
debounce = false
local humanoid = hit.Parent:FindFirstChild(“Humanoid”)
Humanoid.HeadScale.Value + .5
end
it’s not a touch thing it’s if the player clicks the button all characters with testing value true should be big headed
but i am running into a problem.
it still increases head size, even with value false.