Okay, the gun now shoots but in the direction of my face and it goes from left to right
Would it be easier for you to help if i gave you the scripts?
Because i donāt think itās very easy for you with just screenshots
Yeah, Use a RemoteEvent
:
RemoteEvent.OnServerEvent:Connect(function(Player, mousepos)
local GunStart = player.Character.PrimaryPart
local RCP = RaycastParams.new()
RCP.FilterDescendentsInstances = {player.Character}
local RCR = workspace:Raycast(GunStart.Position, (GunStart.Position - mousepos)* Range, RCP)
if RCR then
return RCR.Position
else
return mousepos
end
end)
LocalScript:
RemoteEvent:FireServer(Mouse.Hit.p)
Yes i already use a remoteevent for that, but the gun system is a youtube tutorial that i heavily modified and i donāt under stand how to implement that
Thatās why i am telling you to give you the script
Yes
Does it bother you if i give it to you in private messages on devforum?
no, its kinda normal
1 Like
My issue is still not resolved
After thinking, i managed fixed the script myself.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.