Change the grip of a tool

Hi, I’m trying to change the grip of a tool, the LocalScript one works but the Script doesn’t, could you help me with an example of a Script to change the grip of a tool for all players and not affect the localscript.
Been trying but the script I use to change it doesn’t work for me.
Thank you very much if you help me.

6 Likes

server sided scripts always affect the server, asking it not to affect something isn’t possible

6 Likes

but you can change the grip of a tool yes or no on the server

5 Likes

Yes you can change the grip on the server

3 Likes

How do you change it so that it affects all players?

3 Likes

You can set the Grip position of the tool under the properties tab and it should change the grip for all the players. Where exactly is your tool located?

4 Likes

What I try to do is a flashlight is already done but I try to change the grip of the client and the server

2 Likes

Does the position of the tool change whenever you move? Example: does the tool glitch or move up and down?

2 Likes

Show us the script you’re using to change the position

2 Likes

that’s the localscript


and this is what the server sees

any ideas to fix the server?

This doesn’t really help but try placing this some where inside the server script

tool.Grip = Vector3.new(0,0,0) --or whatever you want it to be
4 Likes
local Players = game:GetService("Players")

for _, player in ipairs(Players:GetPlayers()) do
	local character = player.Character
	if character then
		local tool = character:FindFirstChild("flashlight")
		if tool then
			while true do
				tool.GripPos = Vector3.new(0, -0.5, 0)
				tool.GripUp = Vector3.new(0, 1, 0)
				print("g")
				wait()
			end
		end
	end
end

this script comes close but doesn’t work xd
someone help me

2 Likes

nothing happens anymore i fixed it

1 Like

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