.Touched isn't workingg I think

local canParry = script.Parent.Parent:WaitForChild("ParryWindow")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local parryDoer = ReplicatedStorage:WaitForChild("ParryDoer")

print("hi")
script.Parent.Touched:Connect(function(thingy)
	print(thingy)
	if canParry.Value == true then
		parryDoer:FireServer(thingy)
	end
end)

it not print hi nor thingy

I just realizee, when I click play, the script not there for some reason

here what it supposed to be
image

Where is ShieldHitbox and how is it moved to the character?

inn starter player, there is model name StarterCharacter and it have alll the things withh shield hitbox in it

Can you create a new localscript in the shieldhitbox and see if it stays there?

If the script is just inside StarterCharacter and not inside that hitbox part, it won’t be placed in the hitbox β€” it will be placed in the Character model. Make sure you put the script inside that part.

Just create a script not in the part but in the ServerScriptService

I putted the scripts in startercharacterscripts

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