Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a meditation play when m pressed and a weapon animation play?

Asked by 7 years ago
Edited 7 years ago

I have two different animations I need played. One is when I swing a sword, I have a special animation. I cant find the url (hoping to use the id in the script) and one that starts when m is pressed which is here. https://www.roblox.com/library/1476724055/Meditation-Animation

Also just an added bonus where people gain back 10 health every 5 seconds while meditating. Thanks in advance and hope to upvote your answers.

EDIT: Ok to the request of some of you I will put codes I found that said they would work but didn't. If you fix the script please explain what parts of it do. My code I used for the meditating script is this (I put it in StarterPlayerScripts in a local script) ` Animation = Instance.new("Animation")

01Animation.Parent = game.Workspace
02 
03Animation.AnimationId = "http://www.roblox.com/asset/?id=1476724055"
04 
05local Player = game.Players.LocalPlayer
06 
07local mouse = game.Players.LocalPlayer:GetMouse()
08 
09mouse.KeyDown:connect(function (key)
10 
11for i, v in pairs(game.Players:GetChildren()) do
12 
13if key == "m" then
14    local AnimationTrack = Player.Character.Humanoid:LoadAnimation(Animation)
15 
View all 22 lines...
0
This isn't a request site. It would help to have some code to start with, because it helps you learn, and helps us solve your problem. obcdino 113 — 7y
0
UserInputService Timmerman73 85 — 7y
0
There I added my script i tried ChestplateCannon 0 — 7y

Answer this question