So I'm trying to recreate a really old 2010 game. I'm having trouble with something, obv.
When you select a tooland you click, it spawns a NPC. I got that done. My problem is, I want it to spawn where ever the mouse clicked.
code:
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Button1Down:connect(function()
local noob = game.Lighting.Noob
noob.Parent = workspace
noob.Position = Mouse(x, y)
end)
Any help?

4 comments
Then what do I use?
^ Idk, ServerStorage maybe? The Storage for the Server?
ServerStorage if only the server is going to look, or ReplicatedStorage if you need the client to know about it (In LocalScripts)
Thanks guys, your the best