Attempt to call missing method 'Start' of table

Hello, I’ve been trying to fix this script for an EXHAUSTING 10 minutes… I Can’t get myself to do it though…

I’ve been trying to use RaycastHitboxV4 for a combat system I’ve been trying to make, but it keeps on throwing the error below.

How would I go on about fixing this??

The error:
image

The code:

local player = game:GetService("Players").LocalPlayer
local char = player.Character
local uis = game:GetService("UserInputService")
local hum = char:WaitForChild("Humanoid")
local anims = require(game:GetService("ReplicatedStorage").Animations)
local damagerequire = require(game:GetService("ReplicatedStorage").RaycastHitboxV4)

function damagev2(damagepoints, attachmentparent, dmgcfrs, damage, damagetimee)
	local Params = RaycastParams.new()
	Params.FilterDescendantsInstances = {char}
	Params.FilterType = Enum.RaycastFilterType.Blacklist
	
	local newHitbox = damagerequire.new(attachmentparent)
	newHitbox.RaycastParams = Params
	newHitbox.Visualizer = true
	newHitbox.DebugLog = true
	
	for _ = 1, damagepoints do
		local dmgpoint = Instance.new("Attachment", attachmentparent)
		dmgpoint.CFrame = dmgcfrs
		newHitbox:Start()
		newHitbox.OnHit:Connect(function(hit, h)
			h:TakeDamage(damage)
		end)
	end
end

uis.InputBegan:Connect(function(input, gpe)
	if gpe then return end
	if input.KeyCode == Enum.KeyCode.F then
		damagev2(1, char["Left Arm"], char["Left Arm"].CFrame * CFrame.new(0, 0.50, 0), 5, 3)
		anims.newanim(char.Humnaoid.Animator, 11445579216)
	end
end)

Any help is greatly appreciated!

Oh yeah also, I tried to use this in the damagev2 function. (It’s inside the RaycastHitboxV4 Module)

OOH IT WAS HITSTART() / HITSTOP() INSTEAD

How do i delete devforum posts i feel unbelievably STUPID

Click the three dots next to your post and click delete.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.