#help with script

1 messages · Page 1 of 1 (latest)

atomic epoch
#
local RS = game:GetService("ReplicatedStorage")
local remote = RS:WaitForChild("RasenganRemote")

remote.OnServerEvent:Connect(function(player)
    print(player.Name)
    local ras = RS.SkillsFolder.Skills.Rasengan.Part.Rasengan:Clone()
    ras.Parent = player.Character["Right Arm"]
    ras.Position = ras.Position - Vector3.new(0,1,0)
    
    local hitbox = Instance.new("Part")
    hitbox.Parent = player.Character
    hitbox.Transparency = .5
    hitbox.CanCollide = false
    hitbox.Massless = true
    hitbox.CFrame = player.Character["Right Arm"].CFrame
    hitbox.Size = Vector3.new(1.255, 0.752, 1.325)
    
    local weld = Instance.new("WeldConstraint")
    weld.Part0 = player.Character["Right Arm"] * CFrame.new(0,-1,0)
    weld.Part1 = hitbox
    weld.Parent = hitbox
end)

anyone can help me why i cannot position the hitbox? i asked for help in a br server but they just roasted me instead of helping, yes ik im bad but im trying

quaint blaze
#

pretty sure that WeldConstraint doesn't accept CFrames

grizzled zenith
versed breach
wicked charm
flint zinc
#

@atomic epoch

#

use modules for creating hitboxes

atomic epoch
atomic epoch
#

its just for testing

#

since i am new in scripting

#

i made a rasengan vfx and i wanna learn how to make it work

atomic epoch
atomic epoch
#

yea

#

yesterday when i checked there was no errors

wicked charm
# atomic epoch no errors

i can guarantee you this shit errors weld.Part0 = player.Character["Right Arm"] * CFrame.new(0,-1,0) and i dont like having to ask for errors twice

atomic epoch
#

lemme check

wicked charm
toxic pike
#

is a part

#

did you mean C0?

#

thats an offset i think

atomic epoch
#

i mean

#

let me tell the full story

#

first i tried using part 1, 0, c1 and c0

#

didint work

#

i ask gpt

#

and it give me that part of the code

#

i tried to change it

#

didint work

#

search for weld in devforum

#

didint found it

#

because im idiot but that you ignore

#

and im stuck here now

quaint blaze