how can i make Attack Script Fire from Basic attack local script
https://gyazo.com/e61718e40c6dd2d97fe9290724c2fa35
heres the script if it can help
local Sound1 = script.Parent.WaterSound1
local Sound4 = script.Parent.WaterSound4
local Sound3 = script.Parent.WaterSound3
local Debris = game:GetService("Debris")
local function RemoveEffect(Ep,Tbr,Len,GSize,GCFrame,GTrans)
spawn(function()
wait(Tbr)
TweenService:Create(Ep,TweenInfo.new(Len,Enum.EasingStyle.Linear), {Transparency = GTrans,Size = GSize,CFrame = GCFrame}):Play()
Debris:AddItem(Ep,Len+0.5)
end)
end
local player = game.Players.LocalPlayer
local char = player.Character
local rp = char:WaitForChild("HumanoidRootPart")
local ReplicatedStorage= game:GetService("ReplicatedStorage")
TweenService = game:GetService("TweenService")
local WaterWheelEffects = ReplicatedStorage:WaitForChild("WaterWheel")
local plr = game.Players.LocalPlayer
local Char = plr.Character or plr.CharacterAddeed:Wait()
local Player = game.Players.LocalPlayer
local Character = Player.Character or script.Parent
local Humanoid = Character.Humanoid
local UserInputService = game:GetService("UserInputService")
local AnimationID = 'rbxassetid://4906842204'
local key = 'R'
local debounce = true
UserInputService.InputBegan:Connect(function(Input, IsTyping)
if IsTyping then return
end
if Input.KeyCode == Enum.KeyCode[key] and debounce == true then
debounce = false
local Animation = Instance.new("Animation")
Animation.AnimationId = AnimationID
local LoadAnimation = Humanoid:LoadAnimation(Animation)
LoadAnimation:play()
local Tool = script.Parent
local Blade = Tool:WaitForChild("Blade")
local Trail = Blade:WaitForChild("Trail")
Trail.Enabled = true
local player = game:GetService("Players").LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local RootPart = Character.HumanoidRootPart
plr.Character.Humanoid.WalkSpeed = 0
local BV = Instance.new("BodyVelocity")
BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BV.Velocity = RootPart.CFrame.lookVector.Unit * 65 --
Sound1:Play()
Sound4:Play()
spawn(function()
local WW = ReplicatedStorage:WaitForChild("WaterWheel"):Clone()
WW.Size = Vector3.new(10.1,10.1,5.1)
WW.Transparency = 0
WW.Anchored = true
WW.CanCollide = false
wait(0.77)
WW.CFrame = rp.CFrame * CFrame.Angles(5,1.5,0)
WW.Parent = workspace
TweenService:Create(WW,TweenInfo.new(0.25,Enum.EasingStyle.Linear),{Size = Vector3.new(23.44, 26.943, 1.834),Transparency = 0.5,CFrame = rp.CFrame * CFrame.Angles(10,1.5,0)}):Play()
RemoveEffect(WW,0.3,0.25,Vector3.new(0.1,0.1,0.1),rp.CFrame * CFrame.Angles(10,1.5,0),1)
Sound3:Play()
end)
BV.Parent = RootPart
wait(1)
Trail.Enabled = false
BV:Destroy()
debounce = true
plr.Character.Humanoid.WalkSpeed = 16
wait(2)
Sound1:Stop()
Sound4:Stop()
end
end)

3 comments
moe
Well, are you gonna make us fix your code from entirely 99 lines?
well