local
function BIGBlaster() if activu == true then return end if bigblastercooldown == true then return end activu = true bigblastercooldown = true punchsfx:Play() local mousehit = mouse.Hit.p bigblastevent:FireServer(mousehit) wait(0.4) activu = false wait(25) local bigblastercooldown = false end
(mouse is defined further up in the script)
server
game:GetService("ReplicatedStorage").DTWAUBlast.OnServerEvent:Connect(function(player, mousehit) local chr = player.Character local rarm = chr["Right Arm"] local hed = chr["Head"] local blaster = game.ServerStorage.DTWAUActualBlast local gblaster = blaster:Clone() gblaster.Parent = workspace.Effects gblaster.CFrame = CFrame.new(chr.HumanoidRootPart.Position, mousehit) * CFrame.Angles(math.pi/2, 0, 0)
its meant to be a gun that shows up behind you and aims towards the mouse.
it keeps giving me Invalid argument #2 (Vector3 expected, got nil), what exactly am i missing or doing wrong here?