I am trying to make an ability like the Hallow Jack ability in Slap Battles, how can I do this?
I'm trying to make an ability like the Hallow Jack ability from Slap Battles, but it never seems to work. I've tried everything I could think of, and still, I cannot find why it doesn't work.
02 | local ss = game:GetService( "ServerStorage" ) |
03 | local sword = ss.SwordAbility |
04 | local shockwave = ss.Shockwave |
05 | local tweensizeshockwave = ss.WaveTweenSizeMaterial |
06 | local plrs = game:GetService( "Players" ) |
07 | local tweens = game:GetService( "TweenService" ) |
09 | local function createShockwave(positionc) |
10 | local shockwaveclone = shockwave:Clone() |
11 | shockwaveclone.Parent = workspace |
12 | shockwaveclone.Position = positionc |
13 | print ( "Shockwave added" ) |
14 | local tweentrans = tweens:Create(shockwaveclone, TweenInfo.new( 0.7 , Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0 , false , 0 ), { Transparency = 1 } ) |
15 | local tweenstuffies = tweens:Create(shockwaveclone, TweenInfo.new( 2 , Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0 , false , 0 ), { Size = tweensizeshockwave.Size } ) |
16 | print ( "Shockwave tweens loaded" ) |
18 | print ( "Shockwave tweens have begun" ) |
22 | print ( "Shockwave tweens finished" ) |
23 | shockwaveclone:Destroy() |
24 | print ( "Shockwave destroyed" ) |
26 | local function addSword(bruhhhh) |
27 | local swordclone = sword:Clone() |
28 | local sccf = swordclone.CFrame |
29 | swordclone.Parent = workspace |
30 | swordclone.CFrame = sccf * (bruhhhh.CFrame.lookVector * Vector 3. new( 5 , 5 , 5 )) |
31 | print ( "Sword added + CFrame applied" ) |
33 | game.Players.PlayerAdded:Connect( function (plr) |
34 | plr.CharacterAdded:Wait() |
35 | local char = plr.Character |
36 | plr.Chatted:Connect( function (chat) |
37 | if chat = = "/abil" then |
39 | createShockwave(char.Torso.Position) |
40 | print ( "Functions completed successfully" ) |