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

How do I create a instance that is below my humanoid?

game:GetService("Players").PlayerAdded:connect(function(Player)
	Player.Chatted:connect(function(Message)
		if Message == "joe mama" then
			game.Workspace.Sounds.TP:Play()
			local Gate = Instance.new("Part",game.Workspace)
			local Humanoid = Player.Character.HumanoidRootPart -- this probably has something to do with it
			Gate.Anchored = true
			Gate.Material = Enum.Material.Neon
			Gate.BrickColor = BrickColor.new("Institutional white")
			Gate.Position = Humanoid.Position -- how do i make this be below the humanoid
			Gate.Shape = Enum.PartType.Cylinder
			Gate.Size = Vector3.new(0.05, 8.8, 5.39)
			Gate.Orientation = Vector3.new(0, 0, -90)
		end
	end)
end)

2 comments

0

example of what i need

1 answer

✓ Accepted answer

Try this.

game:GetService("Players").PlayerAdded:connect(function(Player)
    Player.Chatted:connect(function(Message)
        if Message == "joe mama" then
            game.Workspace.Sounds.TP:Play()
            local Gate = Instance.new("Part",game.Workspace)
            local Humanoid = Player.Character.HumanoidRootPart -- this probably has something to do with it
            Gate.Anchored = true
            Gate.Material = Enum.Material.Neon
            Gate.BrickColor = BrickColor.new("Institutional white")
            Gate.CFrame = Humanoid.CFrame + Vector3.new(0, 3, 0)
            Gate.Shape = Enum.PartType.Cylinder
            Gate.Size = Vector3.new(0.05, 8.8, 5.39)
            Gate.Orientation = Vector3.new(0, 0, -90)
        end
    end)
end)

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