Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't this RemoteEvent FireServer when I tell it to?

Asked by
Jo_Bot 67
6 years ago

I have a script, and a local script, and FE enabled. I use the local script to fire two RemoteEvents, and the script detects them and runs them on the server. The first RemoteEvent Fires to the Server correctly, and the script responds correctly, but when the second RemoteEvent is supposed to be fired(Pressing "C"), it doesn't, it also does not print("Stand"). (chr.Parent == game.Lighting, script puts the character into lighting, so that is not the problem)

local chr = script.Parent
local player = game.Players.LocalPlayer
local Event = game.ReplicatedStorage.Ragdoll
local EventTwo = game.ReplicatedStorage.Stand
local UIS = game:GetService("UserInputService")
local cam = game.Workspace.CurrentCamera
UIS.InputBegan:connect(function(key)
    if key.KeyCode == Enum.KeyCode.Q and chr.Parent == game.Workspace then
        Event:FireServer(cam)
        print("Fall")       
    elseif key.KeyCode == Enum.KeyCode.C and chr.Parent == game.Lighting then
        EventTwo:FireServer(cam)
        print("Stand")
    end

end)


Any help is appreciated! Thank you!(Even though not everyone that reads this will help and I haven't seen the answer(s), lol)

-Jo_Bot

0
try printing in the server script (Event.OnServerEvent:connect(function(player, cam) print('test') end) hellmatic 1523 — 6y
0
Ahh! It is sickings! The dude that said "Cool free ragdoll script1" but okay, lol. Jo_Bot 67 — 6y
0
Hmm, nothing. Jo_Bot 67 — 6y

Answer this question