Hi, i’m trying to shrink a player, however it isn’t working with the script i found. Here is the code:
local debounce = 3
local bin = true
script.Parent.Touched:Connect(function(hit)
local Humanoid = hit.Parent:FindFirstChild("Humanoid")
if Humanoid and bin and hit.Parent:FindFirstChild("Dash") then
bin = false
local HD = Humanoid:GetAppliedDescription()
HD.HeadScale = HD.HeadScale * .2
HD.DepthScale = HD.DepthScale * .2
HD.WidthScale = HD.WidthScale * .2
HD.HeightScale = HD.HeightScale * .2
Humanoid:ApplyDescription(HD)
wait(debounce)
bin = true
end
end)
I pasted your code into a part and it worked for me.
The only part I removed was the hit.Parent:FindFirstChild("Dash"), but I manually inserted an instance named Dash into my character and used your exact code and it still produced the same result.
(The small part next to me is my Dash instance)
I think the issue may be that your script is in a wrong location or is disabled? What type of script are you using, and where is it inside? And so on.