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

No output, but animation script still doesn't work?

Asked by
yoshiegg6 176
10 years ago

This is in a tool in a local script, and it doesn't give any output. It's supposed to play an animation and clones something from replicated storage but it doesn't work. It uses context action service in case the tool is unequipped. I changed server storage to replicated storage because local script, I removed the stamina check to make it simpler, I parented the animation to the char, and now there's no output but it still doesn't work. Anyone know what's wrong with it?

01--Normal variable setup
02local player = game.Players.LocalPlayer
03local char = player.Character
04local debounce = false
05 
06--Setting up the animation
07local animation = Instance.new("Animation")
08animation.Parent = script.Parent.Parent
09animation.AnimationId = "http://www.roblox.com/Asset?ID=21488069"
10local animTrack = char.Humanoid:LoadAnimation(animation)
11--Context Action Service
12local CAS = game:GetService("ContextActionService")
13 
14--Actual function I want to happen
15function firewall()
View all 34 lines...

Thanks for the help.

1 answer

Log in to vote
0
Answered by
yumtaste 476 Moderation Voter
10 years ago

I'm not 100% sure about this, so please don't downvote, but I think line 29 should be CAS:BindActionToInputTypes("wall", firewall(), false, Enum.KeyCode.R)

I just came up with this answer by reading the wiki.

0
^I know, people downvote for even the simplest mistake even if it's their own fault. I helped someone with just 1 error in his script, there were more but I helped him with one and he was like "doesn't wurk" and downvoted me. But yeah, I'll try that when I get home. Thanks! yoshiegg6 176 — 10y
0
Please upvote. yoshiegg6 176 — 10y
0
Lol ok. If this answer ends up working, please mark it as accepted and upvote. yumtaste 476 — 10y
0
I can't upvote until my reputation gets higher which requires upvotes. Upvote me and I'll upvote you. yoshiegg6 176 — 10y
View all comments (4 more)
0
Doesn't work, downvoting. Just kidding. yoshiegg6 176 — 10y
0
Maybe you should learn more about how to script before you post answers that get downvoted. Just saying yumtaste 476 — 10y
0
I'm at an intermedate level it's just I don't always have access to studio. yoshiegg6 176 — 10y
0
I'm a high level scripter, so I can script without having to test it yumtaste 476 — 10y
Ad

Answer this question