Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix this instance.new postion not being the players foot?

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

0

Right leg is not a valid member of model this made it not even clone

0

Wait, maybe the Character is R15. In R6, it is RightLeg. In R15, it is LowerRightLeg.

0

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

1 answer

I fixed the issue by making a varible for rightfoot.postion

This discussion is preserved as it was. New answers, comments, and votes are closed.