Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Get Player and GUI
- local player = game.Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Function to update GUI text
- local function updateGuiText()
- 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 = "RAMPANT ANGER"
- end
- end
- end
- end
- -- Connect GUI updates
- playerGui.DescendantAdded:Connect(updateGuiText)
- updateGuiText()
- -- Function to handle animations
- local function playAnimation(humanoid, animationId, newAnimationId, speed, stopDelay)
- for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://" .. newAnimationId
- local animTrack = humanoid:LoadAnimation(anim)
- animTrack:Play()
- animTrack:AdjustSpeed(speed or 1)
- if stopDelay then
- delay(stopDelay, function()
- animTrack:Stop()
- end)
- end
- end
- -- List of animations
- local animations = {
- [12273188754] = {newId = 15121659862, speed = 1}, -- Move 1
- [12296113986] = {newId = 17120635926, speed = 0.5}, -- Move 2
- [12309835105] = {newId = 18716478642, speed = 1.1, stopDelay = 1.8}, -- Move 3
- [13603396939] = {newId = 18716683497, speed = 1} -- Move 4
- }
- -- Animation event handler
- local function onAnimationPlayed(animationTrack)
- local humanoid = player.Character:WaitForChild("Humanoid")
- local config = animations[tonumber(animationTrack.Animation.AnimationId:match("%d+"))]
- if config then
- playAnimation(humanoid, animationTrack.Animation.AnimationId, config.newId, config.speed, config.stopDelay)
- end
- end
- -- Connect humanoid animation events
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- -- Handle new character spawns
- player.CharacterAdded:Connect(function(newCharacter)
- character = newCharacter
- humanoid = character:WaitForChild("Humanoid")
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- end)
- getgenv().color = Color3.new(1, 0.13, 0)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/felixsidzed/veryCoolScripts/refs/heads/main/Change%20Effects%20TSBG.lua"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement