Hey There, I’ve had an issue in something that was working normally but for some reasons now it doesn’t work?
I wanted to get assistance on it if its actually someone because of my script?
I had a localscript inside a UI and I was simulating the press E to do something.
However, when I fired the RemoteEvent the OnServerEvent script had no sign of life…?
Local Script
for i,v in pairs(game.Workspace.Buses:GetChildren()) do
local mag = (v.Bus.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
if mag <= 10 then
if not floxysmart then
floxysmart = true
repeat script.Parent.Black.BackgroundTransparency = script.Parent.Black.BackgroundTransparency - 0.1
wait()
until script.Parent.Black.BackgroundTransparency <= 0
print("p1:")
v.EnterBus:FireServer() -- Firing the RemoteEvent
print("P2:")
wait(2)
floxysmart = false
print("P3:")
Script
local EnterBus = script.Parent.EnterBus
local LeaveBus = script.Parent.LeaveBus
local seats = {
seat1 = false,
seat2 = false,
seat3 = false,
seat4 = false,
seat5 = false,
seat6 = false,
seat7 = false,
seat8 = false,
seat9 = false,
seat10 = false,
seat11 = false,
seat12 = false
}
script.Parent.EnterBus.OnServerEvent:Connect(function(player)
print("Works..")
local Rand = math.random(1,12)
local seat = "Seat"..Rand
local value = seats[seat]
print("Works..2")
print(seat)
The local script prints everything, however the server script prints nothing. Is it something from my side?