Event script running without the FireServer() call

  1. What do you want to achieve? Fix my scripts.

  2. What is the issue? My event script is running without the FireServer() call

  3. What solutions have you tried so far? I tried to look at DevHub but i din’t found an solution.

My localScript

local player = game.Players.LocalPlayer
local power = script.Parent
local rs = game.ReplicatedStorage
local ParticlesEvent = rs.ParEvent
local backpack = rs.ParEventBackPack

script.Parent.Changed:Connect(function()
	if script.Parent.Value == 4 then
		ParticlesEvent:FireServer() 
	else
		local tool = player.Backpack:WaitForChild("ParticlesTool",9) 
		if tool then
			backpack:FireServer()
			print("fired")
		end
		
	end
	
end)

ServerScriptService script:

local event = game.ReplicatedStorage:WaitForChild("ParEventBackPack")

event.OnServerEvent:Connect(function(player)
	local char = player.Character
	local tool = player.Backpack:WaitForChild("ParticlesTool",9)
	if tool then
		
		tool.MeshPart["p1"].Enabled = true
		
		
	end
		
	
	
	
end)

Whats wrong on these scripts?

if script.Parent.Value == 4 then
		ParticlesEvent:FireServer() 
if tool then
			backpack:FireServer()

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