Add attachment0 of linear velocity to RootAttachment

So ive done the function of the tool, but for it to work the linear velocity attachment0 need to be connected (obv)
and ive tried to add it (via regular script in tool) (using this solution) to RootAttachment of the person using the tool but it didnt work.
Idk why its so hard to attach it by regular script thats in the tool but i couldnt find an exact solution.

I dont think the codes necessary cuz i deleted what i tried a few hours ago and cant get it back but heres the script which does work if i find a way to connect the attachment.

local bouy = script.Parent
local water = game.Workspace:WaitForChild("Water")
local force = bouy.Handle.LinearVelocity
local air = bouy.Handle.ParticleEmitter

local plrs = game:GetService("Players")

bouy.Equipped:Connect(function()
	
	water.Touched:Connect(function()
		air.Enabled = true
		force.Enabled = true		
	end)
		
	water.TouchEnded:Connect(function()	
		force.Enabled = false
		air.Enabled = false
	end)
	
end)
1 Like

Btw i fixed it (used local script instead and changed a few things)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.