As you can see in the video, the potion spawner is working fine. In the weapon I use the hitbox as the handle and connect the mesh with motor6d. (not with the potions because there’s no need to use a hitbox). and I’m guessing that’s what it to spawn invisible but I cant find a way to fix it.
Here’s the spawner script
part = script.Parent
Rs = game:GetService("ReplicatedStorage")
Weapons = Rs.WeaponsFolder
function SpawnRandomWeapon()
local WeaponsTable = Weapons:GetChildren()
local RandomWeapon = WeaponsTable[math.random(1, #WeaponsTable)]
local WeaponClone = RandomWeapon:Clone()
WeaponClone.Parent = workspace
WeaponClone.Handle.Position = part.Position
end
while wait(math.random(1, 2)) do
SpawnRandomWeapon()
end
I found where the model is going. its spawning in the tool position (before its spawned). so if I put the tool at 0,0,0, and the spawner at 0,2,0, the Handle will spawn at 0,2,0, but the Model will spawn at 0,0,0. Hope that makes sense lol. Tried to put the position of the model as the position of the handle, but the tool grip is now wonky.