ive been trying to make a script where you press a gui button and it spawns a bus. for some reason, it worked before but now it wont. heres my code:
heres the fire-part of the local script:
game.ReplicatedStorage.spawns.RemoteEvent:FireServer()
print("remote event fired")
script.Parent.Parent.Parent:Destroy()
and heres the whole server script inside the remote event:
script.Parent.OnServerEvent:Connect(function(plr)
print("remote event activated")
local bus = game.ServerStorage.buses.bus1:Clone()
bus.Parent = workspace.buses
bus.chassis.Anchored = false
bus:SetPrimaryPartCFrame(CFrame.new(-13, 13, 5))
bus.Name = plr.Name
end)
but in the output only “remote event fired” comes up and not “remote event activated”.
all help is appreciated ![]()