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

How to get this sword script working?

Asked by
Async_io 908 Moderation Voter
9 years ago

Okay, this is from a video that I watched by Stickmasterluke. It hasn't been working for me, and I copied every letter, space, and detail that he did. I need help with this. I know what the script does, I just don't know how to make one on my own. The issue is the activation. I'm trying to get the animations to play, which are in a different script, but it's deciding to not go like it's suppose to. I know it's the main script, not the animations. Anyways, the script.

01tool = script.Parent
02handle = tool:WaitForChild('Handle')
03event = tool:WaitForChild('RemoteEvent')
04swingtime = 1
05combowindow = 1
06combo = 0
07wait(1)
08 
09 
10 
11--speedboost = 1.25
12 
13handle.Touched:connect(function(hit)
14    if equipped and humanoid and humanoid.Health > 0 and hit  and not hit:isDescendantOf(character) and hit.Parent.Enemy then
15        local targethumanoid = hit.Parent:FindFirstChild('Humanoid')
View all 71 lines...

Sorry for the ugliness, I'm trying to produce a bunch of scripts in order to hit a deadline.

Answer this question