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

Help with Changed function? (for alphawolvess)

Asked by 8 years ago

Before everyone freaks out, Im new, Deal with it Controls

01local player = game.Players.LocalPlayer
02local gyro = nil
03local mouse = player:GetMouse()
04mouse.TargetFilter = game.Workspace.Level
05local runService = game:GetService('RunService')
06local character = player.Character or player.CharacterAdded:wait()
07 
08local function onCharacterAdded(character)
09    local head = character:WaitForChild('Head')
10    gyro = Instance.new('BodyGyro')
11    gyro.P = 50000
12    gyro.MaxTorque = Vector3.new(0, 10000, 0)
13    gyro.Parent = head
14 
15    local humanoid = character:WaitForChild('Humanoid')
View all 35 lines...

Flying

01local player = game.Players.LocalPlayer
02local camera = script.Parent.Camera
03local controls = script.Parent.Controls
04walking = true
05climbing = true
06number = script.Parent.Camera.di
07wait(1)
08print("beep")
09wait(1)
10print("beep")
11wait(1)
12print("beep")
13wait(1)
14print("beep")
15wait(1)
View all 34 lines...

camera

01x = script.Fov.Value
02localy = script.di.Value
03local offset = Vector3.new(y,y,y)
04local fieldOfView = x
05 
06local player = game.Players.LocalPlayer
07local character = player.Character or player.CharacterAdded:wait()
08local camera = game.Workspace.CurrentCamera
09local runService = game:GetService('RunService')
10 
11 
12camera.FieldOfView = fieldOfView
13 
14local function onRenderStep()
15    local playerPosition = character.Head.Position
View all 25 lines...

1 answer

Log in to vote
0
Answered by 8 years ago

It would help if you said what is wrong. Like paste the error or something

Ad

Answer this question