
KeylessUniversal

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local idle1 = Instance.new("Animation")
idle1.AnimationId = "rbxassetid://698543303"
local idle2 = Instance.new("Animation")
idle2.AnimationId = "rbxassetid://539471275"
local restAnim = Instance.new("Animation")
restAnim.AnimationId = "rbxassetid://2695918332"
local idleTrack1 = Humanoid:LoadAnimation(idle1)
local idleTrack2 = Humanoid:LoadAnimation(idle2)
local restTrack = Humanoid:LoadAnimation(restAnim)
idleTrack1.Looped = true
idleTrack2.Looped = true
restTrack.Looped = true
idleTrack1:Play()
idleTrack2:Play()
local ScreenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
ScreenGui.ResetOnSpawn = false
local button = Instance.new("TextButton", ScreenGui)
button.Size = UDim2.new(0, 100, 0, 40)
button.Position = UDim2.new(1, -110, 0.5, 0)
button.AnchorPoint = Vector2.new(1, 0.5)
button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.Font = Enum.Font.SourceSansBold
button.TextSize = 20
button.Text = "Rest: OFF"
button.BorderSizePixel = 0
button.AutoButtonColor = true
button.ZIndex = 10
local resting = false
button.MouseButton1Click:Connect(function()
resting = not resting
if resting then
button.Text = "Rest: ON"
idleTrack1:Stop()
idleTrack2:Stop()
restTrack:Play()
else
button.Text = "Rest: OFF"
restTrack:Stop()
idleTrack1:Play()
idleTrack2:Play()
end
end)
LocalPlayer.CharacterAdded:Connect(function(char)
Character = char
Humanoid = char:WaitForChild("Humanoid")
idleTrack1 = Humanoid:LoadAnimation(idle1)
idleTrack2 = Humanoid:LoadAnimation(idle2)
restTrack = Humanoid:LoadAnimation(restAnim)
idleTrack1.Looped = true
idleTrack2.Looped = true
restTrack.Looped = true
if resting then
restTrack:Play()
else
idleTrack1:Play()
idleTrack2:Play()
end
end)
--You can edit this freely >:3
local banner = Instance.new("Frame", ScreenGui)
banner.Size = UDim2.new(1, 0, 0, 50)
banner.Position = UDim2.new(0, 0, 0, -50)
banner.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
banner.BorderSizePixel = 0
banner.ZIndex = 100
local label = Instance.new("TextLabel", banner)
label.Size = UDim2.new(1, 0, 1, 0)
label.Position = UDim2.new(0, 0, 0, 0)
label.Text = "Made by Sillyflex/Skibidimariodisney on scriptblox"
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.BackgroundTransparency = 1
label.Font = Enum.Font.SourceSansBold
label.TextSize = 24
label.ZIndex = 101
local tweenService = game:GetService("TweenService")
local down = tweenService:Create(banner, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)})
local up = tweenService:Create(banner, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Position = UDim2.new(0, 0, 0, -50)})
down:Play()
task.wait(2)
up:Play()
task.delay(0.6, function()
banner:Destroy()
end)No comments yet for this script.



