Problem exactly as title suggests. I have a Rod connected to a Handle and because of this, the Model connected to the Handle flies to the Handle instead of spawning in as they should.
Not using any scripts on this, tools without rods work fine, if there’s any information needed I’m happy to share !
I think it’s because the part of the lamp spawns where you were creating it. My solution is to set the cframe of the part of the lamp to the handle when you equip it.
I recreated the rod even with the script where it teleports immediately to your hand and it still bugs out, so if you’re really desperate, I’d recommend using rope constraints.
edit: rope constraints dont work either
edit 2: if you add the script where it spawns to your hand it’s not as bad but still glitches out a bit https://gyazo.com/eb0074503a8a4309ac51d0278d6b44ff
when you use fat_magician’s script, make sure to make the part that is connected to the rod is massless so it won’t shift the character around when it’s equipped
I would love for it to be massless for that reason however having the bottom part heavy stops the lantern from swinging around so much - but I’ll tinker !
(also replying to @skylersop)
you can make it massless when it’s equipped then maybe use a task.wait(1) or something to make it go back to having mass, here’s an example script
local part = script.Parent.Handle -- replace this with what you want to be massless
script.Parent.Equipped:Connect(function()
part.Massless = true
task.wait(.5)
part.Massless = false
end)
script.Parent.Unequipped:Connect(function()
part.Massless = false
end)
Excuse my abysmal scripting skills - Beat my head against a wall for about an hour and a half and just about commissioned someone just trying to frankenstein it all together !
Here is my current script
local part = script.Parent.Handle.Model:GetDescendants()
local handle = script.Parent.Handle
local denPart = script.Parent.Handle.Model:GetChildren("MassPart")
script.Parent.Equipped:Connect(function()
part.Position = handle.CFrame.Position
denPart.CurrentPhysicalProperties.Density = 0
task.wait(1)
denPart.CurrentPhysicalProperties.Density = 5
print("worked")
end)
script.Parent.Unequipped:Connect(function()
denPart.CurrentPhysicalProperties.Density = 0
end)
.
Tried teleporting the Model to the Handle as I’m unsure how to use Replicated Storage for these things with no such luck. The documentation says CurrentPhysicalProperties can be called upon but gives no example for me to reference