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)
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)