How to Make a Drink Animation - Grow Player | Roblox Studio | 2023
Автор: SimTek Game Development
Загружено: 2023-09-03
Просмотров: 8374
Описание:
How to create a drink Animation to make a player grow and return to normal size.
To deal with "Failed to Load animation - sanitized ID:" go to 14:44
Tools, Accessories, Animation Playlist: • Tools, Accessories, Animation
-------------------- Grow (replace doSomethingCool in the DoServerStuff)
function doSomethingCool(player)
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(1)
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local hs = hum:WaitForChild("HeadScale")
local bds = hum:WaitForChild("BodyDepthScale")
local bhs = hum:WaitForChild("BodyHeightScale")
local bws = hum:WaitForChild("BodyWidthScale")
local tween = ts:Create(hs, ti, { Value = hs.Value + .5 })
tween:Play()
tween = ts:Create(bds, ti, { Value = bds.Value + .5 })
tween:Play()
tween = ts:Create(bhs, ti, { Value = bhs.Value + .5 })
tween:Play()
tween = ts:Create(bws, ti, { Value = bws.Value + .5 })
tween:Play()
end
------------------- Normal Size (replace doSomethingCool in the DoServerStuff)
function doSomethingCool(player)
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(1)
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local hs = hum:WaitForChild("HeadScale")
local bds = hum:WaitForChild("BodyDepthScale")
local bhs = hum:WaitForChild("BodyHeightScale")
local bws = hum:WaitForChild("BodyWidthScale")
local tween = ts:Create(hs, ti, { Value = 1 })
tween:Play()
tween = ts:Create(bds, ti, { Value = 1 })
tween:Play()
tween = ts:Create(bhs, ti, { Value = 1 })
tween:Play()
tween = ts:Create(bws, ti, { Value = 1 })
tween:Play()
end
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: