The purpose of the script is to play an animation.
local hum = game.Workspace.Dannebrog.HumanoidCharacter local set = hum.Parent.Settings local sp = set.Speed local enabled = set.Enabled local humanim = hum:LoadAnimation(hum.Parent.Settings.IdleAnimation) game.Workspace.TriggerPart.Touched:Connect(function(part) if part.Parent.Humanoid then humanim:Play() humanim.Looped = false humanim:AdjustSpeed(sp.Value) end end)