local RepStorage = game:WaitForChild("ReplicatedStorage")
local Remote = RepStorage:WaitForChild("Stomp")
Remote.OnServerEvent:Connect(function(player)
local Character = player.Character
local Foot = Character.RightFoot
local Hitbox = Instance.new("Part",Foot)
Hitbox.Size = Vector3.new(.4, 15, 15)
Hitbox.Transparency = 0
Hitbox.Position = Vector3.new(Foot)
Hitbox.BrickColor = BrickColor.new("Really red")
Hitbox.Anchored = true
Hitbox.CanCollide = false
Hitbox.Shape = "Cylinder"
print("Event Finished")
end)
I need the instance.new postion to be the players foot how do i do this? What am i doing wrong?

3 comments
Right leg is not a valid member of model this made it not even clone
Wait, maybe the Character is R15. In R6, it is RightLeg. In R15, it is LowerRightLeg.
I think the solution right now is check Humanoid.RigType is R15 or R6. https://developer.roblox.com/en-us/api-reference/property/Humanoid/RigType