-
What do you want to achieve? Fix my scripts.
-
What is the issue? My event script is running without the FireServer() call
-
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?