You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
Make part appear in front of player and weld it
What is the issue? Include screenshots / videos if possible!
it teleport the player to the part
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
u have tried switching up parts and adding waits but no avail
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local player = tool.Parent
local hum = player:FindFirstChild("Humanoid")
local range = game.ServerStorage.Random.GBhitr
print("Get into it yuh")
local slice = hum:LoadAnimation(amm2)
slice:Play()
local cpy = range:Clone()
local offset = Vector3.new(0 ,0 ,-5 )
local hrp = player.PrimaryPart
cpy.CFrame = hrp.CFrame * CFrame.new(offset)
cpy.Parent = player
local weld = Instance.new("Weld", player)
weld.Part0 = player.PrimaryPart
weld.Part1 = cpy
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Try swapping Part0 with Part1. (Part0 becomes cpy and Part1 player.PrimaryPart)
Also you should parent the weld to Part0. I’m pretty sure it changes the behavior.
local player = tool.Parent
local hum = player:FindFirstChild("Humanoid")
local range = game.ServerStorage.Random.GBhitr
print("Get into it yuh")
local slice = hum:LoadAnimation(amm2)
slice:Play()
local cpy = range:Clone()
local hrp = player.PrimaryPart
local offset = Vector3.new(0, 0, -5)
cpy.CFrame = hrp.CFrame*CFrame.new(offset)
cpy.Parent = player
local weld = Instance.new("Weld", cpy)
weld.Part0 = cpy
weld.Part1 = player.PrimaryPart