Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables--
- local set = script.Settings
- local sp = set.Speed
- local enabled = set.Enabled
- local hum = script.Parent:WaitForChild("Humanoid")
- if hum then
- print("Success")
- else
- print("No Humanoid")
- end
- local humanim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
- --Playing Animation--
- if enabled.Value == true then
- humanim:Play()
- humanim.Looped = true
- humanim:AdjustSpeed(sp.Value)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement