Mouse Cursor isn't loading?
Asked by
6 years ago Edited 6 years ago
I made a script to my game, and its supose to make a gun, but it is not working.
I started getting this error: 18:28:05.943 - Image "https://assetgame.roblox.com/asset/?id=358948941" failed to load in "Mouse Cursor": Request failed
Here's my script:
02 | local pistola = script.Parent |
03 | local hole = pistola:WaitForChild( "Hole" ) |
04 | local mouse = game.Players.LocalPlayer:GetMouse() |
10 | local headshotDamage = 50 |
18 | pistola.Equipped:Connect( function () |
22 | pistola.Unequipped:Connect( function () |
27 | pistola.Activated:Connect( function () |
30 | pistola.Handle.Disparo:Play() |
31 | local bullet = Instance.new( "Part" ) |
32 | bullet.Size = Vector 3. new(range, 0.25 , 0.25 ) |
33 | local ray = Ray.new(hole.CFrame.Position, (mouse.Hit.Position - hole.CFrame.Position).Unit*range) |
34 | local hit, position = workspace:FindPartOnRay(ray, game.Players.LocalPlayer.Character) |
35 | local distance = (pistola.Handle.CFrame.p - position).magnitude |
36 | bullet.CFrame = CFrame.new(pistola.Handle.CFrame.p, position) * CFrame.new( 0 , 0 , distance/ 2 ) |
37 | bullet.Transparency = 0.5 |
38 | bullet.CanCollide = false |
39 | bullet.Anchored = true |
40 | bullet.Parent = game.Workspace |
41 | bullet.Orientation = hole.Orientation |
42 | bullet.Position = hole.Position |
43 | game:GetService( "Debris" ):AddItem(bullet, 0.5 ) |
Also pistola = gun. XD
Here's a video of what my gun is doing : http://gyazo.com/1cf05bb4a57ad9a37866f40546380fd7
Could you help me fixing this?
(also send a answer, not a comment :/ i think i shouldn't have to say this but ppl always send comment insteed of answers :/)