So I am kind of confused on these scripts.
This one is inside the textbutton
local replicatedstorage = game:GetService("ReplicatedStorage") script.Parent.MouseButton1Click:Connect(function() replicatedstorage.FireServer:FireServer() end)
this is the server script
game.ReplicatedStorage.FireServer.OnServerEvent:Connect(function(player) game.ReplicatedStorage.FireClient:FireClient(player) end)
other local script
local cam = game.Workspace.CurrentCamera local player = game.Players.LocalPlayer game.ReplicatedStorage.FireClient.OnClientEvent:Connect(function() if player.Backpack:WaitForChild("Tool") then cam.CameraSubject = player.Backpack.Tool.Handle cam.CameraType = "Follow" elseif game.Workspace:WaitForChild("Tool") then cam.CameraSubject = game.Workspace.Tool.Handle cam.CameraType = "Follow" elseif player.Character:WaitForChild("Tool") then cam.CameraSubject = player.Character.Tool.Handle cam.CameraType = "Follow" end end)
Doesn't work at all :(