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

My fps framework aiming not working any way of fixing? (im not that good at scripting. Read desc)

Asked by 4 years ago
Edited 4 years ago

Ok so i tried making aiming for my fps framework game. But the aiming only works if i use auto clicker at left click then i hold right click and it works. But when i don't use auto clicker it just aims for a millisecond. (i watched yt tutorials btw) Script:

01local Player = game.Players.LocalPlayer
02local camera = workspace.CurrentCamera
03local VM = script.Arms:Clone()
04local run = game:GetService("RunService")
05local Aiming = false
06local Ammo = script.Ammo
07local shooting = false
08local TS = game:GetService("TweenService")
09 
10 
11 
12run.RenderStepped:Connect(function()
13    VM.Parent = camera
14    VM:SetPrimaryPartCFrame(VM:GetPrimaryPartCFrame():Lerp(camera.CFrame * CFrame.new(0,-1,0),0.5))
15    end)
View all 46 lines...
0
That looks kinda complez for someone who doesn't know scripting that much :/ TheOnlineItalian213 99 — 4y
0
i did watch youtube tutorials IEntity_303I 80 — 4y

Answer this question