Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do i change player size when stepping on a brick? [closed]

Asked by 4 years ago

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.

0
Scriptinghelpers is not a request site. Dovydas1118 1495 — 4y

Closed as Not Constructive by Dovydas1118, rexhawk, JesseSong, and IAmNotTheReal_MePipe

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
1
Answered by 4 years ago
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

Ad
Log in to vote
-1
Answered by 4 years ago
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)

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. lolol1901 28 — 4y
0
script.Parent.TouchedLConnect(functio() BongoCatJoosan 77 — 4y