Monster mash fe
Key RequiredUniversal

Monster mash fe

Universal ScriptMOONVMMOONVM 909 views 91 executesUpdated Dec 5, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•71 lines (1606 chars)
local animation = Instance.new("Animation")
	local music = Instance.new("Sound", game.Workspace)          
	local Players = game:GetService("Players")              
	local player = Players.LocalPlayer    
	
	music.SoundId = "http://www.roblox.com/asset/?id=35930009"
	music.Looped = true
	
	animation.Parent = script.Parent
	animation.AnimationId = "http://www.roblox.com/Asset?ID=35654637"
	
	
	local currentTrack = nil
	
	local function CommandHandler(playerToAnimate)
		local character = playerToAnimate.Character
		if not character then return end
	
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		if not humanoid then return end 
	
	
		if currentTrack then
			currentTrack:Stop()
			currentTrack:Destroy() 
		end
		if music.IsPlaying then
			music:Stop()
		end
	
		local track = humanoid:LoadAnimation(animation)
		currentTrack = track 
	
		if track then
			track:Play()
			music:Play()
			local runningConnection
			runningConnection = humanoid.Running:Connect(function(speed)
				if speed > 0.1 then 
					track:Stop()
					ok:Destroy()
					music:Stop()
					if currentTrack == track then
						currentTrack = nil
					end
					if runningConnection then
						runningConnection:Disconnect()
					end
				end
			end)
	
	
			track.Stopped:Connect(function()
				music:Stop()
				if currentTrack == track then
					currentTrack = nil
				end
				if runningConnection then
					runningConnection:Disconnect()
				end
			end)
		end
	end
	
	
	Players.LocalPlayer.Chatted:Connect(function(s)
		local msg = s:lower()
		if msg == "/e monster mash" then
			CommandHandler(player)
		end
	end)

Features & Information

Fe

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts