I tried to make an NPC spawner over a GUI, and just couldn't get it to work. It breaks when I spawn it and other players can't see it could someone help me?
script.Parent.Activated:Connect(function() local NPC = game.ReplicatedStorage.Knight local spawner = script.Parent local Clone = NPC:Clone() Clone.Torso.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,5) Clone.Parent = workspace end) game.ReplicatedStorage.RemoteEvent:FireServer()
First off, you are trying to spawn it off a local gui, meaning that it's a local script which means only you can see it.
Use a remote server, and fire it, and on the server clone the NPC and put it on the workspace, that's how i would do it.