#When i do tool.parent = workspace, and set its position, it snaps back for some reason

1 messages · Page 1 of 1 (latest)

heavy heron
#
-- LOCALSCRIPT
 local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local char = plr.CharacterAdded:Wait()
local cs = game:GetService("CollectionService")
local mouse = plr:GetMouse()
UIS.InputBegan:Connect(function(key, proc)
    if proc then return end
    if key.KeyCode == Enum.KeyCode.Q then
        for _, i in pairs(char:GetChildren()) do
            if i:FindFirstChild("Handle") and cs:HasTag(i:FindFirstChild("Handle"), "isCube") and i:IsA("Tool") then
                
                
                i.Parent = workspace
                i.Handle.Position = mouse.Hit.Position + Vector3.new(0,0.5,0)
                
            end
        end
    end
end) ```
#

in this case tool is i

#

the roblox drop feature automatically sends your tool a few studs away, but when i try to override it and place it my way, it activates the roblox system again

#

making my position changer useless

grim sage
heavy heron
grim sage
heavy heron
#

solved

unique harbor
#

i just say the most common mistake

grim sage