Trying every way to fix script but not WORKİNG!

Hello, I need to make this script second-time work!!! I tried every way to fix but not fixed.
I tried every way to fix it:

  • Try changing on server event to on client events
  • Created 3+ topics
  • 2.5+ hours think and tries
  • Rest and continue scripting
  • Wrote to roblox support
game.ReplicatedStorage.Explode.OnServerEvent:Connect(function(Player)
	game.ReplicatedStorage.Explode:FireClient(Player)
end)

game.ReplicatedStorage.Loadmap.OnServerEvent:Connect(function(Player)
	game.ReplicatedStorage.Loadmap:FireClient(Player)
end)

This last script was created ingame please help me

Can you show the localscript where Explode/Loadmap events are handled?

1 Like

Here is the script:

local RepStorage = game:GetService("ReplicatedStorage")

local Loadmap = RepStorage:WaitForChild("AfterExplode")
local guF = script.Parent

Loadmap.OnClientEvent:Connect(function()
	guF:TweenPosition(UDim2.new(0.005, 0,0, 0))
	guF.Visible = true
	script.Parent.BLOB.Value = true
	script.Parent.Use.Value = 0
end)


You never run :FireServer() so the server-sided events do not get launched, meaning the clients wont be launched either.
Do not put :FireServer() inside the function which connects the client-server as this will create an infinite loop back (which never runs because you never started it)

1 Like
game.ReplicatedStorage.Loadmap.OnServerEvent:Connect(function(Player)
	game.ReplicatedStorage.Loadmap:FireClient(Player)
end)

and

local Loadmap = RepStorage:WaitForChild("AfterExplode")

are different

1 Like

I will try your solotion please wait…

Have you tried using BindableEvents?

You didn’t fire the event that it’s just a connect from the server.

This page is not founded :confused: ???

https://developer.roblox.com/en-us/api-reference/class/BindableEvent