Hello,Im trying to do a recoil script and I did a local and a serverscript.But when I change the value in the tool in the local script,the script in the tool still says that it's false.
Local Script:
mos.Button1Up:Connect(function()
basilli = false
script.Parent.Server.Basilli.Value = false
end)
script.Parent.Activated:Connect(function()
basilli = true
script.Parent.Server.Basilli.Value = true
repeat wait()
local FireDirection = (Mouse.Hit.Position - FirePointObject.WorldPosition).Unit
MouseEvent:FireServer(FireDirection)
until basilli == false
end)
Server Script:(just that line)
while wait() do
print(script.Basilli.Value)
if script.Basilli.Value == true then
MAX_BULLET_SPREAD_ANGLE = 10
end
end

1 comment
Wow thank you so much!