Hello.

I have this bindable event glitch. I need to communicate from server scripts to eachother. But the bindable event doesn't work on my game.

In my test the events do work. Can someone help me? I REALLLLYY need help. I cant figure this out, as there are no errors in the output and no red things under my script.

Test scripts: (two scripts combined)

local rs = game.ReplicatedStorage
local event = rs:WaitForChild("Fed")

event.Event:Connect(function()
	print("Yes")
end)
---------------------------------------------
local rs = game.ReplicatedStorage
local event = rs:WaitForChild("Fed")

event:Fire()

Sender script:

local rs = game.ReplicatedStorage
local fedEvent = rs:WaitForChild("Fed")
local smoke = script.Parent.Parent.Smoke.Smoke

script.Parent.Touched:Connect(function(part)
	if part.Parent.Name == "fRENd!!1!!!!1" or part.Parent.Name == "Ene.my!!!!!1111!" then
		smoke["Steam Hiss"]:Play()
		smoke.Smoke.Enabled = true
		part.Parent:Destroy()
		fedEvent:Fire(0.5)
		wait(3)
		smoke.Smoke.Enabled = false
	end
end)





NOTE: ON THE END OF THE SCRIPT IS THE RECEIVER PART I HAVE TRIED THE PRINT FUNCTION WHEN IT RECEIVES SOMETHING BUT IT DIDNT PRINT ANYTHING Receiver script:

chat = game:GetService("Chat")
--face = script.Parent.Parent.LORD["RED FACE"]

local ds = game:GetService("DataStoreService"):GetDataStore("LordFed")
local rs = game.ReplicatedStorage
local event = rs:WaitForChild("Fed")

assert(coroutine.resume(coroutine.create(function()
	while true do
		if ds:GetAsync("LordFed") ~= nil then
			script.Parent.Parent.Sign.Sign.SurfaceGui.TextLabel.Text = "Thing fed to mr.lor:"..ds:GetAsync("LordFed")
		else
			script.Parent.Parent.Sign.Sign.SurfaceGui.TextLabel.Text = "Thing fed to mr.lor:0"
		end
		if ds:GetAsync("HealthDamaged") ~= nil then
			script.Parent.Parent.Sign2.Sign.SurfaceGui.TextLabel.Text = "Total helth deestroy:"..ds:GetAsync("HealthDamaged")
		else
			script.Parent.Parent.Sign2.Sign.SurfaceGui.TextLabel.Text = "Total helth deestroy:0"
		end
		wait()
	end
end)))

phrases = {
"FEED ME FRIENDS",
"FEED ME SMILEYS",
"DONT TOUCH ME",
"HOW DARE YOU DENY ME",
"STOP TOUCHING ME",
"IF YOU ARE NOT GOING TO STOP WE WILL MAKE YOU DIE",
"STOP",
"WE ARE POWERFULL SO ME CAN MAKE YOU DIE EASILY",
"HOW DARE YOU",
"GET A LIFE",
"YOU IDIOT",
}

local function NomNom(t)
	if ds:GetAsync("LordFed") == nil then
		ds:SetAsync("LordFed", 0)
	else
		ds:SetAsync("LordFed", ds:GetAsync("LordFed") + 1)
		print('Lord Fed Count +1')
	end
	script.Parent.Parent.Sign.Sign.SurfaceGui.TextLabel.Text = "Thing fed to mr.lor:"..ds:GetAsync("LordFed")
	t.Parent:Destroy()
	talking = true
	script.Parent["Nom Nom Nom"]:Play()
	chat:Chat(script.Parent, "*nom nom nom*",3)
	wait(5)
	talking = false
	wait(1)
	for i = 1, 4 do
		wait(0.5)
		talking = true
		chat:Chat(script.Parent, "MORE!!!!!!!!",3)
	end
	wait(3)
	talking = false
end

local function SilentNomNom(f)
	if ds:GetAsync("LordFed") == nil then
		ds:SetAsync("LordFed", 0)
	else
		ds:SetAsync("LordFed", ds:GetAsync("LordFed") + f)
		print('Lord Fed Count +'..f)
	end
	script.Parent.Parent.Sign.Sign.SurfaceGui.TextLabel.Text = "Thing fed to mr.lor:"..ds:GetAsync("LordFed")
end

debounce = false
talking = false
talkings = false
face = script.Parent.Parent.LORD.FACE
script.Parent.Parent.LORD.Touched:Connect(function(t)
	if debounce == false and t.Parent:FindFirstChild("Humanoid") then
		debounce = true
		if ds:GetAsync("HealthDamaged") == nil then
			ds:SetAsync("HealthDamaged", 0)
		else
			ds:SetAsync("HealthDamaged", ds:GetAsync("HealthDamaged") + 35)
			print('Health Damaged Count +35')
		end
		script.Parent.Parent.Sign2.Sign.SurfaceGui.TextLabel.Text = "Total helth deestroy:"..ds:GetAsync("HealthDamaged")
		script.Parent.METAL_SCREECH:Play()
		t.Parent:FindFirstChild("Humanoid").Health -= 35
		talking = true
		chat:Chat(script.Parent, phrases[math.random(1,#phrases)],3)
		wait(3)
		talking = false
		debounce = false
	elseif t.Parent.Name == "fRENd!!1!!!!1" or t.Parent.Name == "Ene.my!!!!!1111!" then
		NomNom(t)
	end
end)

while wait() do
	if talking then
		talkings = not talkings
		if talkings == true then
			face.Texture = "http://www.roblox.com/asset/?id=208146089"
		elseif talkings == false then
			face.Texture = "http://www.roblox.com/asset/?id=7074932"
		end
		wait(0.25)
	else
		face.Texture = "http://www.roblox.com/asset/?id=208146089"
	end
end

event.Event:Connect(function(f)
	SilentNomNom(f)
end)

4 comments

0

LOL, I'm definitely not going to read all of this and find a specific error. You need to make a test-case by making a new bindable event with a little code, and try to replicate your issue.

0

...

0

Well why did you make a comment in the first place i already recreated the ISSUE IF YOU READ MORE DUDE I GAVE YOU SO MUCH INFORMATION AND YOU MESSED UP NORMAL PEOPLE REQUIRE SO MANY QUESTIONS BUT YOU DIDNT EVEN READ THIS QUESTION shame on you

0

I EVEN MADE TEXT THIC TO MAKE PEOPLE NOTICE THIS: NOTE: ON THE END OF THE SCRIPT IS THE RECEIVER PART I HAVE TRIED THE PRINT FUNCTION WHEN IT RECEIVES SOMETHING BUT IT DIDNT PRINT ANYTHING