Сегодня я вам покажу как сделать Меню с Эмоциями в роблокс студио! Приятного Просмотра!
Так же можете оценить мою игру:
[ Ссылка ]
Скрипты:
----- Скрипт на меню
local frame = script.Parent.Frame
local imageButton = script.Parent.ImageButton
local originalPosition = frame.Position
local centerPosition = UDim2.new(0.299, 0, 0.208, 0)
local rightOffset = UDim2.new(1.5, 0, 0.208, 0)
local isFrameVisible = false
local tweenTime = 0.5
local function toggleFrame()
isFrameVisible = not isFrameVisible
if isFrameVisible then
local tweenInfo = TweenInfo.new(tweenTime, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
game:GetService("TweenService"):Create(frame, tweenInfo, {Position = centerPosition}):Play()
else
local tweenInfo = TweenInfo.new(tweenTime, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
game:GetService("TweenService"):Create(frame, tweenInfo, {Position = rightOffset}):Play()
end
end
imageButton.MouseButton1Click:Connect(toggleFrame)
----- Скрипт на эмоции
local animation = script.Animation
local player = game:GetService("Players").LocalPlayer
local humanoid = player.Character:WaitForChild("Humanoid")
local button = script.Parent
local AnimationTrack = humanoid:LoadAnimation(animation)
local isPlaying = false
local function sitting()
if isPlaying == true then
AnimationTrack:Stop()
isPlaying = false
humanoid.WalkSpeed = 16
else
AnimationTrack:Play()
isPlaying = true
humanoid.WalkSpeed = 0
end
end
button.MouseButton1Click:Connect(sitting)
Теги (Не читать)
#roblox #robloxstudio #studio #death #роблокс #роблоксстудио #смерть #гайд #каксделатьэкрансмерти #каксделатьэкранпослесмерти #howtomakedeathscreenrobloxstudio #зюзя #каксделатьменюсэмоциями #emotesmenurobloxstudio
![](https://i.ytimg.com/vi/n_SbRGcsq78/maxresdefault.jpg)