I want to change the player size like the size could become small or big when stepping on a brick but I don't know how.
COMMUNITY QUESTION
How do i change player size when stepping on a brick?
2 answers
local scale = 2
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local humanoid = hit.Parent.Humanoid
humanoid.BodyDepthScale.Value = scale
humanoid.BodyHeightScale.Value = scale
humanoid.BodyWidthScale.Value = scale
humanoid.HeadScale.Value = scale
end
end)
Change scale to change how far you scale. Also plz mark me as answer :P
local ScaleCharacter=require(4657682015).ScaleCharacter
local newsize=5
local tab={}
script.Parent.Touched:Connect(function(v)
local char=v.Parent
if char and not tab[char] and char:FindFirstChildOfClass"Humanoid" then
tab[char]=true
ScaleCharacter(char,newsize)
char.Changed:Connect(function()
if not char.Parent then tab[char]=nil end
end)
end
end)
2 comments
0
I personally hate your answers because they explain nothing and are not organized. Most questions here are rookie questions and this is spoonfeeding, not answering.
0
script.Parent.TouchedLConnect(functio()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Scriptinghelpers is not a request site.