Issue 1: My flashlight is limited to one player. I had my friends join my test server and when we all went to grab the flashlight it would only let one person hold it.
Example: Person 1 grabs flashlight. Then Person 2 grabs flashlight. Person 1 gets flashlight taken away, and Person 2 would have the flashlight. I'll edit this message to let you know if it was a server bug like the issue 2.
Issue 2: Sometimes it bugs out and goes invisible, and in some servers you cannot even pick up the flashlight at all. [see images]
Here is my script btw.
Proximitypromt to grab flashlight tool. (Located in workspace alongside a model of the light where you're prompted to grab it. The model is for looks and is not the flashlight you're grabbing.)
local ProximityPrompt = script.Parent
local Item = game.ServerStorage.Tools:FindFirstChild("Flashlight")
ProximityPrompt.Triggered:Connect(function(player)
Item.Parent = player.Backpack
end)
Flashlight Tool's LocalScript. (located in ServerStorage > Tools folder > Flashlight (a tool) > "LightScript" (a LocalScript)
script.Parent.Activated:Connect(function()
if script.Parent.Handle.SpotLight.Enabled == true then
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.click:Play()
else
script.Parent.Handle.SpotLight.Enabled = true
script.Parent.Handle.click:Play()
end
end)
script.Parent.Equipped:Connect(function()
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.grab:Play()
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Handle.grab:Play()
end)
[Images below this are locations of my scripts, just incase.]