Server Script:
local rp = game:GetService("ReplicatedStorage")
local event = rp:WaitForChild("water")
local mouse = rp:WaitForChild("mouse")
rp.RemoteEvent.OnServerEvent:Connect(function(player,mp)
print(player)
print(mp)
player.Character.Cylinder.CFrame = mp
end)
Local Script:
local rp = game:GetService("ReplicatedStorage")
local player = game:GetService("Players").LocalPlayer
local Mouse = player:GetMouse()
Mouse.Move:Connect(function()
local MousePosition = Mouse.Hit
rp.RemoteEvent:FireServer(MousePosition)
end)
So, what this does is make my attack follow my mouse, but the cframe makes it curve a lot on the ground instead of staying straight up while following my mouse. How can I make it stand straight up in any other way?
