Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
hokyboy 270 Moderation Voter
4 years ago
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?

0
Right leg is not a valid member of model this made it not even clone hokyboy 270 — 4y
0
Wait, maybe the Character is R15. In R6, it is RightLeg. In R15, it is LowerRightLeg. Block_manvn 395 — 4y
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 Block_manvn 395 — 4y

1 answer

Log in to vote
0
Answered by
hokyboy 270 Moderation Voter
4 years ago

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

Ad

Answer this question