#im lit goin insaine with this raycast

1 messages · Page 1 of 1 (latest)

green thistle
#

how do i fix this, i added the parans and raycats (ai dont wanna use shapecast it looks complicated) so heres my script

#

pt 1

#

local function ComboChanger(character, combo)
if combo < 5 then
character:SetAttribute("Combo", combo+1)

    task.delay(1, function()
        if character:GetAttribute('Combo') - 1 == combo then
            character:SetAttribute("Combo, 1")
        end
    end)
else
    character:SetAttribute("Combo", 1)
end

end

local hitmodule = require(game.ServerStorage.modules.HitModule)
local raymodule = require(game.ServerStorage.modules.RaycastHitboxV4)
local ts = game:GetService("TweenService")
local info = TweenInfo.new(.13, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local remote = game.ReplicatedStorage:WaitForChild("Combat")

local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Exclude

local hitproperties = {}
hitproperties.Damage = 4
hitproperties.StunDuration = .13

remote.OnServerEvent:Connect(function(player)
local character = player.Character
local stand = character:FindFirstChild("Stand")
local combo = character:GetAttribute("Combo")
local attacking = character:GetAttribute("Attacking")
local stunned = character:GetAttribute("Stunned")
local unsummoning = character:GetAttribute("Unsummoning")

 if attacking or stunned or unsummoning or not stand then return end
 
 character:SetAttribute("Attacking", true)

 raycastParams.FilterDescendantsInstances = {character}
  
 local humanoid = character.Humanoid
 
 --Character parts
 local stand_rp = stand.PrimaryPart
 local parts = {stand ["Left Arm"], stand["Right Arm"], stand["Left Arm"], stand["Right Arm"], stand["Right Leg"]}
#

local function ComboChanger(character, combo)
if combo < 5 then
character:SetAttribute("Combo", combo+1)

    task.delay(1, function()
        if character:GetAttribute('Combo') - 1 == combo then
            character:SetAttribute("Combo, 1")
        end
    end)
else
    character:SetAttribute("Combo", 1)
end

end

local hitmodule = require(game.ServerStorage.modules.HitModule)
local raymodule = require(game.ServerStorage.modules.RaycastHitboxV4)
local ts = game:GetService("TweenService")
local info = TweenInfo.new(.13, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local remote = game.ReplicatedStorage:WaitForChild("Combat")

local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Exclude

local hitproperties = {}
hitproperties.Damage = 4
hitproperties.StunDuration = .13

remote.OnServerEvent:Connect(function(player)
local character = player.Character
local stand = character:FindFirstChild("Stand")
local combo = character:GetAttribute("Combo")
local attacking = character:GetAttribute("Attacking")
local stunned = character:GetAttribute("Stunned")
local unsummoning = character:GetAttribute("Unsummoning")

 if attacking or stunned or unsummoning or not stand then return end
 
 character:SetAttribute("Attacking", true)

 raycastParams.FilterDescendantsInstances = {character}
  
 local humanoid = character.Humanoid
 
 --Character parts
 local stand_rp = stand.PrimaryPart
 local parts = {stand ["Left Arm"], stand["Right Arm"], stand["Left Arm"], stand["Right Arm"], stand["Right Leg"]}
 
 local weld = stand.Weld
 
 local controller = stand.AnimationController
 local anims = stand.anims
 
 local currentAnim = controller:LoadAnimation(anims[combo])
 local hitbox = raymodule.new(parts[combo])
 hitbox.RayCastParams = raycastParams
 hitbox.Visualizer = true
#

pt 3

#

holup

#

imm send the other one later

#

i cant send

#

imma try later later

raw oyster
#
local function ComboChanger(character, combo)
    if combo < 5 then
        character:SetAttribute("Combo", combo+1)
        task.delay(1, function()
            if character:GetAttribute('Combo') - 1 == combo then
                character:SetAttribute("Combo", 1)
            end
        end)
    else
        character:SetAttribute("Combo", 1)
    end
end

local hitmodule = require(game.ServerStorage.modules.HitModule)
local raymodule = require(game.ServerStorage.modules.RaycastHitboxV4)
local ts = game:GetService("TweenService")
local info = TweenInfo.new(.13, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local remote = game.ReplicatedStorage:WaitForChild("Combat")

local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Exclude

local hitproperties = {}
hitproperties.Damage = 4
hitproperties.StunDuration = .13

remote.OnServerEvent:Connect(function(player)
    local character = player.Character
    local stand = character:FindFirstChild("Stand")
    local combo = character:GetAttribute("Combo")
    local attacking = character:GetAttribute("Attacking")
    local stunned = character:GetAttribute("Stunned")
    local unsummoning = character:GetAttribute("Unsummoning")
    
    if attacking or stunned or unsummoning or not stand then
        return
    end
    
    character:SetAttribute("Attacking", true)
    raycastParams.FilterDescendantsInstances = {character}
    
    local humanoid = character.Humanoid
    local stand_rp = stand.PrimaryPart
    local parts = {stand["Left Arm"], stand["Right Arm"], stand["Left Arm"], stand["Right Arm"], stand["Right Leg"]}
    local weld = stand.Weld
    local controller = stand.AnimationController
    local anims = stand.anims
    
    local currentAnim = controller:LoadAnimation(anims[combo])
    local hitbox = raymodule.new(parts[combo])
    hitbox.RayCastParams = raycastParams
    hitbox.Visualizer = true
    
end)
#

@green thistle

#

try this

green thistle
#

i forgot to send the 3rd one but thank u

#

im gonna test it tmr or later

#

imma lyk

#

tu

#

thank u