Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

:GetMouse() doesnt work with remote events for me?

Asked by
Cen_ix 0
6 years ago
Edited 6 years ago

so i made a script that works perfectly fine, up until the point that it is supposed to call the mouse to position the effects.

Dupe.CFrame = CFrame.new(Dupe.Position, Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z))

local ray = Ray.new(Dupe.CFrame.p, (mouse.Hit.p - Dupe.CFrame.p).unit * 300)
local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)

Normally that works for me just fine, but it doesnt now.

Am i doing it wrong or is it just because its filtering enabled.

Just so you know, the way it gets the mouse is this:

Local Script

local plrmouse = player:GetMouse()
game.ReplicatedStorage.Test:FireServer(plrmouse)

Server Script

game.ReplicatedStorage.Test.OnServerEvent:Connect(function(player, plrmouse)
0
Nevermind, Someone told me how Cen_ix 0 — 6y

Answer this question