Ok so i tried to make a script to place a part wherever a player clicked. of course it has to use remote events for everyone to see it but when i click (yes i made sure both the remote event and the client script fire) it doesnt work. can someone help?
client script:
RE = game.ReplicatedStorage.RemoteEvent player = game:GetService("Players").LocalPlayer player:GetMouse().Button1Down:Connect(function(click) local Mousepos = player:GetMouse().hit.Position RE:FireServer(Mousepos) end)
server scipt:
RE = game.ReplicatedStorage.RemoteEvent local function trigger(player, Mousepos) local newpart = Instance.new("Part") print(Mousepos) local part = Instance.new("Part") part.Position = Mousepos end RE.OnServerEvent:Connect(trigger)