Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Im trying to make it so if i touch it, it gets bigger but nothing happens any way to fix?


local function onTouch(otherPart)

local character = otherPart.Parent

if character then

local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 2, true , 0.5) local man = {CFrame = CFrame.new(20, 20 , 20)}

tweenInfo:Play()

end end

1 answer

✓ Accepted answer
local function onTouch(otherPart)

    local character = otherPart.Parent

    if character then

        local tweenService = game:GetService("TweenService")

        local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Bounce, Enum.EasingDirection.InOut, 2, true , 0.5) 

        local tween = game:GetService("TweenService"):Create(character,tweenInfo,{
        CFrame = CFrame.new(20, 20 , 20) --Currently i'm assuming the thing you want to enlarge is the character, so i put character as the first parameters. ELSE, change character to the part you want to enlarge.
    })

        tween:Play()

    end
 
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.