so from these 2 scripts when a player clicks the part does not spawn where i want it to it just spawns in the center of the baseplate aka 0,0,0 localscript:
play = game.Players.LocalPlayer
char = play.Character
mouse = play:GetMouse()
cloth = game.ReplicatedStorage.Cloth:Clone()
spot = mouse.Hit.p
mouse.Button1Down:Connect(function()
game.ReplicatedStorage.ClothEvent:FireServer(spot)
end)
script:
cloth = game.ReplicatedStorage.Cloth:Clone()
game.ReplicatedStorage.ClothEvent.OnServerEvent:Connect(function(player,spot)
cloth.Parent = workspace
cloth.Anchored = true
cloth.Position = spot
end)
also on the localscript i would like the part to follow the mouse until the player clicks then place the actual part on the server, i have tried it before but failed it only shows where the player would click
