lol. Its fine tho. Im sure this will work. Im not good at scripting and I’m learning(I only learned from books on lua. They don’t help a lot.).
Just like what others said above, you can’t use the FireServer()
method on an object, it can only be used on a remote event. Here is something you can try
Add a remote event in replicated storage and name it BobuxEvent (or whatever you want it to be named). Then, go to your local script and use this following code:
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local Event = game.ReplicatedStorage.BobuxEvent
hum.Died:Connect(function()
Event:FireServer(char)
end)
Also, I recommend adding this local script inside of StarterCharacterScripts instead of Workspace.
Could we at least see the Explorer hierarchy to see where you have everything?
uh. Sure…
I kinda meant the entire Explorer heirarchy whoops
Well 1 issue is that the LocalScript
is inside the workspace like I mentioned earlier, you can try putting it in StarterPlayerScripts
instead like @BabyNinjaTime mentioned
yeah. Im going to just try to understand a bit more first then I will try it.