local Trap = game.ServerStorage.BearTrap
local Character
local Player
function plant()
Character = script.Parent.Parent.Parent
Player = game.Players:GetPlayerFromCharacter(Character)
local PlacedTrap = Trap:Clone().HumanoidRootPart
local PlacePos = Character.PrimaryPart.Position
local PlaceRot = Character.PrimaryPart.Orientation
PlacedTrap.Parent = workspace
PlacedTrap.Position = Vector3.new(PlacePos.x, PlacePos.y-4,PlacePos.z)
PlacedTrap.Orientation = PlaceRot
end
script.Parent.Parent.Activated:connect(plant)
what it looks like in-game:
what is expected to see:
ServerStorage:
I can’t make it appear properly for some reason
any help is appreciated :)
local Trap = game.ServerStorage.BearTrap
local Character
local Player
function plant()
Character = script.Parent.Parent.Parent
Player = game.Players:GetPlayerFromCharacter(Character)
local PlacedTrap = Trap:Clone()
PlacedTrap:MakeJoints()
local PlacePos = Character.PrimaryPart.Position
local PlaceRot = Character.PrimaryPart.Orientation
PlacedTrap.Parent = workspace
PlacedTrap.HumanoidRootPart.Position = Vector3.new(PlacePos.x, PlacePos.y-4,PlacePos.z)
PlacedTrap.HumanoidRootPart.Orientation = PlaceRot
end
script.Parent.Parent.Activated:connect(plant)
very funny result:
the trap is not going with the grey box(which is the humanoid root part)
i spend a lot of time trying to fix this