0% found this document useful (0 votes)
31 views7 pages

Invisible's Template

The document contains a script for a game that modifies a player's hotbar and animations. It sets the tool names for four moves and defines functions to handle animation playback for each move. Additionally, it changes the color of the health bar in the player's GUI to red.

Uploaded by

smidge1314
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views7 pages

Invisible's Template

The document contains a script for a game that modifies a player's hotbar and animations. It sets the tool names for four moves and defines functions to handle animation playback for each move. Additionally, it changes the color of the health bar in the player's GUI to red.

Uploaded by

smidge1314
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

local player = game.Players.

LocalPlayer

local playerGui = player.PlayerGui

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("1").Base

local ToolName = baseButton.ToolName

ToolName.Text = "Move 1"

local player = game.Players.LocalPlayer

local playerGui = player.PlayerGui

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("2").Base

local ToolName = baseButton.ToolName

ToolName.Text = "Move 2"

local player = game.Players.LocalPlayer

local playerGui = player.PlayerGui

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("3").Base

local ToolName = baseButton.ToolName

ToolName.Text = "Move 3"

local player = game.Players.LocalPlayer


local playerGui = player.PlayerGui

local hotbar = playerGui:FindFirstChild("Hotbar")

local backpack = hotbar:FindFirstChild("Backpack")

local hotbarFrame = backpack:FindFirstChild("Hotbar")

local baseButton = hotbarFrame:FindFirstChild("4").Base

local ToolName = baseButton.ToolName

ToolName.Text = "Move 4"

local Players = game:GetService("Players")

local player = Players.LocalPlayer

local playerGui = player:WaitForChild("PlayerGui")

-- Ult here

local function findGuiAndSetText()

local screenGui = playerGui:FindFirstChild("ScreenGui")

if screenGui then

local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")

if magicHealthFrame then

local textLabel = magicHealthFrame:FindFirstChild("TextLabel")

if textLabel then

textLabel.Text = "ULT name"

end

end

end

end

playerGui.DescendantAdded:Connect(findGuiAndSetText)

findGuiAndSetText()

-- Move 1 here

local animationId = 10468665991


local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then

local p = game.Players.LocalPlayer

local Humanoid = p.Character:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = Instance.new("Animation")

AnimAnim.AnimationId = "rbxassetid://Animation id here"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play(0)

Anim:AdjustSpeed(0)

Anim.TimePosition = startTime

Anim:AdjustSpeed(1)

end

end

-- Move 2 here

humanoid.AnimationPlayed:Connect(onAnimationPlayed)

local animationId = 10466974800

local player = game.Players.LocalPlayer


local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then

local p = game.Players.LocalPlayer

local Humanoid = p.Character:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = Instance.new("Animation")

AnimAnim.AnimationId = "rbxassetid://Animation id here"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play()

Anim:AdjustSpeed(0)

Anim.TimePosition = startTime

Anim:AdjustSpeed(1)

end

end

-- Move 3 here

humanoid.AnimationPlayed:Connect(onAnimationPlayed)

local animationId = 10471336737

local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()


local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then

local p = game.Players.LocalPlayer

local Humanoid = p.Character:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = Instance.new("Animation")

AnimAnim.AnimationId = "rbxassetid://Animation id here"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play()

Anim:AdjustSpeed(0)

Anim.TimePosition = startTime

Anim:AdjustSpeed(1)

delay(1.8, function()

Anim:Stop()

end)

end

end

-- (dont change this its not working and do not remove)

humanoid.AnimationPlayed:Connect(onAnimationPlayed)

local animationId = 12510170988


local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then

local p = game.Players.LocalPlayer

local Humanoid = p.Character:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = Instance.new("Animation")

AnimAnim.AnimationId = "rbxassetid://Animation id here"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play()

Anim:AdjustSpeed(0)

Anim.TimePosition = startTime

Anim:AdjustSpeed(1)

end

end

-- Move 4 (change this one)

humanoid.AnimationPlayed:Connect(onAnimationPlayed)

local animationId = 12510170988

local player = game.Players.LocalPlayer


local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:WaitForChild("Humanoid")

local function onAnimationPlayed(animationTrack)

if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then

local p = game.Players.LocalPlayer

local Humanoid = p.Character:WaitForChild("Humanoid")

for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do

animTrack:Stop()

end

local AnimAnim = Instance.new("Animation")

AnimAnim.AnimationId = "rbxassetid://Animation id here"

local Anim = Humanoid:LoadAnimation(AnimAnim)

local startTime = 0

Anim:Play()

Anim:AdjustSpeed(0)

Anim.TimePosition = startTime

Anim:AdjustSpeed(1)

end

end

-- Ult bar color

game.Players.LocalPlayer.PlayerGui.ScreenGui.MagicHealth.Health.Bar.Bar.ImageColor3
= Color3.fromRGB(255, 0, 0) -- red

You might also like