Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cf = owner.Character.Head.CFrame * CFrame.new(0,0,-3)
- Folder0 = Instance.new("Folder")
- Base = Instance.new("Part")
- BackL = Instance.new("Part")
- HingeConstraint3 = Instance.new("HingeConstraint")
- FrontL = Instance.new("Part")
- HingeConstraint5 = Instance.new("HingeConstraint")
- BackR = Instance.new("Part")
- HingeConstraint7 = Instance.new("HingeConstraint")
- FrontR = Instance.new("Part")
- HingeConstraint9 = Instance.new("HingeConstraint")
- TurnRight = Instance.new("Part")
- HingeConstraint11 = Instance.new("HingeConstraint")
- TurnLeft = Instance.new("Part")
- HingeConstraint14 = Instance.new("HingeConstraint")
- BackSus1 = Instance.new("Part")
- WeldConstraint17 = Instance.new("WeldConstraint")
- BackSus2 = Instance.new("Part")
- WeldConstraint20 = Instance.new("WeldConstraint")
- local baseattach0 = Instance.new("Attachment",Base)
- local baseattach1 = Instance.new("Attachment",Base)
- local backlattach = Instance.new("Attachment",BackL)
- local sus1attach1 = Instance.new("Attachment",BackSus1)
- local sus1attach2 = Instance.new("Attachment",BackSus1)
- local turnrightattach1 = Instance.new("Attachment",TurnRight)
- local turnrightattach2 = Instance.new("Attachment",TurnRight)
- local turnrightattach3 = Instance.new("Attachment",TurnRight)
- local turnleftattach1 = Instance.new("Attachment",TurnLeft)
- local turnleftattach2 = Instance.new("Attachment",TurnLeft)
- local turnleftattach3 = Instance.new("Attachment",TurnLeft)
- local frontlattach = Instance.new("Attachment",FrontL)
- local backrattach = Instance.new("Attachment",BackR)
- local frontrattach = Instance.new("Attachment",FrontR)
- local sus2attach1 = Instance.new("Attachment",BackSus2)
- local sus2attach2 = Instance.new("Attachment",BackSus2)
- baseattach0.Orientation = Vector3.new(0, 0, 90)
- baseattach0.Position = Vector3.new(0.375, 0.125, 0.125)
- baseattach1.Orientation = Vector3.new(0, 0, 90)
- baseattach1.Position = Vector3.new(0.375, 0.125, -0.125)
- backlattach.Orientation = Vector3.new(0, 0, 0)
- backlattach.Position = Vector3.new(0.125, 0, 0)
- sus1attach1.Orientation = Vector3.new(0, 90, 90)
- sus1attach1.Position = Vector3.new(0, 0.375, 0)
- sus1attach2.Orientation = Vector3.new(0, 90, 0)
- sus1attach2.Position = Vector3.new(0, 0, 0.125)
- turnrightattach1.Orientation = Vector3.new(0, -90, 90)
- turnrightattach1.Position = Vector3.new(0, 0.375, 0)
- turnrightattach2.Orientation = Vector3.new(0, 0, 90)
- turnrightattach2.Position = Vector3.new(0, 0.125, 0)
- turnrightattach3.Orientation = Vector3.new(0, 90, 0)
- turnrightattach3.Position = Vector3.new(0, 0, 0.125)
- turnleftattach1.Orientation = Vector3.new(0, 90, 90)
- turnleftattach1.Position = Vector3.new(0, 0.375, 0)
- turnleftattach2.Orientation = Vector3.new(0, 0, 90)
- turnleftattach2.Position = Vector3.new(0, 0.125, 0)
- turnleftattach3.Orientation = Vector3.new(0, -90, 0)
- turnleftattach3.Position = Vector3.new(0, 0, -0.125)
- frontlattach.Orientation = Vector3.new(0, 0, 0)
- frontlattach.Position = Vector3.new(0.125, 0, 0)
- backrattach.Orientation = Vector3.new(0, 180, 0)
- backrattach.Position = Vector3.new(-0.125, 0, 0)
- frontrattach.Orientation = Vector3.new(0, 180, 0)
- frontrattach.Position = Vector3.new(-0.125, 0, 0)
- sus2attach1.Orientation = Vector3.new(0, 90, 90)
- sus2attach1.Position = Vector3.new(0, 0.375, 0)
- sus2attach2.Orientation = Vector3.new(0, -90, 0)
- sus2attach2.Position = Vector3.new(0, 0, -0.125)
- Folder0.Name = "LilScoot"..owner.Name
- Folder0.Parent = script
- Base.Name = "Base"
- Base.Parent = Folder0
- Base.CFrame = cf
- Base.Color = Color3.new(0.780392, 0.67451, 0.470588)
- Base.Size = Vector3.new(1, 0.25, 0.5)
- Base.BottomSurface = Enum.SurfaceType.Smooth
- Base.CanCollide = false
- Base.Material = Enum.Material.Wood
- Base.TopSurface = Enum.SurfaceType.Smooth
- BackL.Name = "BackL"
- BackL.Parent = Folder0
- BackL.CFrame = cf * CFrame.new(-0.375, 0, -0.375, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- BackL.Orientation = Vector3.new(0, -90, 0)
- BackL.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BackL.Size = Vector3.new(0.25, 0.5, 0.5)
- BackL.BottomSurface = Enum.SurfaceType.Smooth
- BackL.Material = Enum.Material.Slate
- BackL.TopSurface = Enum.SurfaceType.Smooth
- BackL.Shape = Enum.PartType.Cylinder
- BackL.CustomPhysicalProperties = PhysicalProperties.new(2.691,0.2,0,200,99999)
- HingeConstraint3.Parent = BackL
- HingeConstraint3.Attachment0 = backlattach
- HingeConstraint3.Attachment1 = sus2attach2
- HingeConstraint3.ActuatorType = Enum.ActuatorType.Motor
- HingeConstraint3.MotorMaxTorque = 100000
- FrontL.Name = "FrontL"
- FrontL.Parent = Folder0
- FrontL.CFrame = cf * CFrame.new(0.375, 0, -0.375, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- FrontL.Orientation = Vector3.new(0, -90, 0)
- FrontL.Color = Color3.new(0.105882, 0.164706, 0.207843)
- FrontL.Size = Vector3.new(0.25, 0.5, 0.5)
- FrontL.BottomSurface = Enum.SurfaceType.Smooth
- FrontL.Material = Enum.Material.Slate
- FrontL.TopSurface = Enum.SurfaceType.Smooth
- FrontL.Shape = Enum.PartType.Cylinder
- FrontL.CustomPhysicalProperties = PhysicalProperties.new(2.691,0.2,0,200,99999)
- HingeConstraint5.Parent = FrontL
- HingeConstraint5.Attachment0 = frontlattach
- HingeConstraint5.Attachment1 = turnleftattach3
- HingeConstraint5.ActuatorType = Enum.ActuatorType.Motor
- HingeConstraint5.MotorMaxTorque = 100000
- BackR.Name = "BackR"
- BackR.Parent = Folder0
- BackR.CFrame = cf * CFrame.new(-0.375, 0, 0.375, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- BackR.Orientation = Vector3.new(0, -90, 0)
- BackR.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BackR.Size = Vector3.new(0.25, 0.5, 0.5)
- BackR.BottomSurface = Enum.SurfaceType.Smooth
- BackR.Material = Enum.Material.Slate
- BackR.TopSurface = Enum.SurfaceType.Smooth
- BackR.Shape = Enum.PartType.Cylinder
- BackR.CustomPhysicalProperties = PhysicalProperties.new(2.691,0.2,0,200,99999)
- HingeConstraint7.Parent = BackR
- HingeConstraint7.Attachment0 = backrattach
- HingeConstraint7.Attachment1 = sus1attach2
- HingeConstraint7.ActuatorType = Enum.ActuatorType.Motor
- HingeConstraint7.MotorMaxTorque = 100000
- FrontR.Name = "FrontR"
- FrontR.Parent = Folder0
- FrontR.CFrame = cf * CFrame.new(0.375, 0, 0.375, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- FrontR.Orientation = Vector3.new(0, -90, 0)
- FrontR.Color = Color3.new(0.105882, 0.164706, 0.207843)
- FrontR.Size = Vector3.new(0.25, 0.5, 0.5)
- FrontR.BottomSurface = Enum.SurfaceType.Smooth
- FrontR.Material = Enum.Material.Slate
- FrontR.TopSurface = Enum.SurfaceType.Smooth
- FrontR.Shape = Enum.PartType.Cylinder
- FrontR.CustomPhysicalProperties = PhysicalProperties.new(2.691,0.2,0,200,99999)
- HingeConstraint9.Parent = FrontR
- HingeConstraint9.Attachment0 = frontrattach
- HingeConstraint9.Attachment1 = turnrightattach3
- HingeConstraint9.ActuatorType = Enum.ActuatorType.Motor
- HingeConstraint9.MotorMaxTorque = 100000
- TurnRight.Name = "TurnRight"
- TurnRight.Parent = Folder0
- TurnRight.CFrame = cf * CFrame.new(0.375, 0, 0.125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TurnRight.Transparency = 1
- TurnRight.Size = Vector3.new(0.25, 0.25, 0.25)
- TurnRight.BottomSurface = Enum.SurfaceType.Smooth
- TurnRight.CanCollide = false
- TurnRight.Material = Enum.Material.Metal
- TurnRight.TopSurface = Enum.SurfaceType.Smooth
- HingeConstraint11.Parent = TurnRight
- HingeConstraint11.Attachment0 = turnrightattach2
- HingeConstraint11.Attachment1 = baseattach0
- HingeConstraint11.ActuatorType = Enum.ActuatorType.Servo
- HingeConstraint11.AngularSpeed = 5
- HingeConstraint11.ServoMaxTorque = 100000
- HingeConstraint11.TargetAngle = 45
- TurnLeft.Name = "TurnLeft"
- TurnLeft.Parent = Folder0
- TurnLeft.CFrame = cf * CFrame.new(0.375, 0, -0.125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- TurnLeft.Transparency = 1
- TurnLeft.Size = Vector3.new(0.25, 0.25, 0.25)
- TurnLeft.BottomSurface = Enum.SurfaceType.Smooth
- TurnLeft.CanCollide = false
- TurnLeft.Material = Enum.Material.Metal
- TurnLeft.TopSurface = Enum.SurfaceType.Smooth
- HingeConstraint14.Parent = TurnLeft
- HingeConstraint14.Attachment0 = turnleftattach2
- HingeConstraint14.Attachment1 = baseattach1
- HingeConstraint14.ActuatorType = Enum.ActuatorType.Servo
- HingeConstraint14.AngularSpeed = 5
- HingeConstraint14.ServoMaxTorque = 100000
- BackSus1.Name = "BackSus"
- BackSus1.Parent = Folder0
- BackSus1.CFrame = cf * CFrame.new(-0.375, 0, 0.125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- BackSus1.Transparency = 1
- BackSus1.Size = Vector3.new(0.25, 0.25, 0.25)
- BackSus1.BottomSurface = Enum.SurfaceType.Smooth
- BackSus1.CanCollide = false
- BackSus1.Material = Enum.Material.Metal
- BackSus1.TopSurface = Enum.SurfaceType.Smooth
- WeldConstraint17.Parent = BackSus1
- WeldConstraint17.Part0 = BackSus1
- WeldConstraint17.Part1 = Base
- BackSus2.Name = "BackSus"
- BackSus2.Parent = Folder0
- BackSus2.CFrame = cf * CFrame.new(-0.375, 0, -0.125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- BackSus2.Transparency = 1
- BackSus2.Size = Vector3.new(0.25, 0.25, 0.25)
- BackSus2.BottomSurface = Enum.SurfaceType.Smooth
- BackSus2.CanCollide = false
- BackSus2.Material = Enum.Material.Metal
- BackSus2.TopSurface = Enum.SurfaceType.Smooth
- WeldConstraint20.Parent = BackSus2
- WeldConstraint20.Part0 = BackSus2
- WeldConstraint20.Part1 = Base
- local lilscoot = Folder0
- --[[for i,v in pairs(lilscoot:GetChildren()) do
- if v.ClassName == "Part" then
- v.Anchored = true
- end
- end]]
- local maxspeed = Instance.new("NumberValue",lilscoot)
- local currentspeed = Instance.new("NumberValue",lilscoot)
- local currentdirection = Instance.new("NumberValue",lilscoot)
- local ts = game:GetService("TweenService")
- local zooming = false
- local sound = Instance.new("Sound",Base)
- sound.Volume = 0
- sound.SoundId = "rbxassetid://9063266198"
- sound.Looped = true
- sound.RollOffMinDistance = 1
- sound.RollOffMaxDistance = 150
- sound:Play()
- local sound2 = Instance.new("Sound",Base)
- sound2.Volume = 1
- sound2.PlaybackSpeed = 2
- sound2.SoundId = "rbxassetid://8916893206"
- sound2.Looped = true
- sound2.RollOffMinDistance = 1
- sound2.RollOffMaxDistance = 150
- sound2:Play()
- local sound3 = Instance.new("Sound",Base)
- sound3.Volume = 1
- sound3.PlaybackSpeed = 2
- sound3.SoundId = "rbxassetid://5945905639"
- sound3.RollOffMinDistance = 3
- sound3.RollOffMaxDistance = 300
- local accelleration = 1
- local decelleration = 5
- owner.Chatted:Connect(function(msg)
- local spl = string.split(msg,"/")
- if spl[1] == "lilscoot" then
- if spl[2] == "setspeed" then
- local num = tonumber(spl[3])
- if num ~= nil then
- maxspeed.Value = num
- end
- elseif spl[2] == "setaccelleration" then
- local num = tonumber(spl[3])
- if num ~= nil then
- accelleration = num
- end
- elseif spl[2] == "setdecelleration" then
- local num = tonumber(spl[3])
- if num ~= nil then
- decelleration = num
- end
- end
- end
- end)
- maxspeed.Value = 70
- maxspeed.Name = "MaxSpeed"
- currentspeed.Name = "CurrentSpeed"
- currentdirection.Name = "CurrentDirection"
- local remote = owner:FindFirstChild("wtfbrolol6")
- if remote == nil then
- remote = Instance.new("RemoteEvent",owner)
- end
- remote.Name = "wtfbrolol6"
- remote.OnServerEvent:Connect(function(plr,key)
- if plr == owner then
- if key == "StartW" then
- ts:Create(currentspeed,TweenInfo.new(accelleration,Enum.EasingStyle.Linear),{Value = maxspeed.Value}):Play()
- elseif key == "EndW" then
- ts:Create(currentspeed,TweenInfo.new(decelleration,Enum.EasingStyle.Linear),{Value = 0}):Play()
- elseif key == "StartS" then
- ts:Create(currentspeed,TweenInfo.new(accelleration,Enum.EasingStyle.Linear),{Value = -maxspeed.Value}):Play()
- elseif key == "EndS" then
- ts:Create(currentspeed,TweenInfo.new(decelleration,Enum.EasingStyle.Linear),{Value = 0}):Play()
- elseif key == "StartA" then
- ts:Create(currentdirection,TweenInfo.new(0.25,Enum.EasingStyle.Linear),{Value = -30}):Play()
- elseif key == "EndA" then
- ts:Create(currentdirection,TweenInfo.new(0.125,Enum.EasingStyle.Linear),{Value = 0}):Play()
- elseif key == "StartD" then
- ts:Create(currentdirection,TweenInfo.new(0.25,Enum.EasingStyle.Linear),{Value = 30}):Play()
- elseif key == "EndD" then
- ts:Create(currentdirection,TweenInfo.new(0.125,Enum.EasingStyle.Linear),{Value = 0}):Play()
- elseif key == "honk" then
- sound3:Play()
- end
- end
- end)
- local s = Instance.new("ScreenGui",owner.PlayerGui)
- s.ResetOnSpawn = false
- wait(0.25)
- NLS([[script.Parent = game.Players.LocalPlayer.PlayerScripts
- local locked = false
- local cam = workspace.CurrentCamera
- cam.CameraType = Enum.CameraType.Scriptable
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Frame.Parent = ScreenGui
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame.Size = UDim2.new(1.5, 0, 1.5, 0)
- Frame.BackgroundTransparency = 1
- local runService = game:GetService("RunService")
- local userInputService = game:GetService("UserInputService")
- local camerasubject = nil
- local deltaa = Vector2.new(0,0)
- local zoom = 10
- local sens = 0.0125
- local scale = 1
- local firstperson = false
- local zoomed = false
- local subtraction = 0.25
- local cameraactive = true
- local ts = game:GetService("TweenService")
- local walkspeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Script" and v:FindFirstChild("LilScoot"..owner.Name) ~= nil then
- camerasubject = v:FindFirstChild("LilScoot"..owner.Name).Base
- break
- end
- end
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- ts:Create(Frame,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{BackgroundTransparency = 0}):Play()
- wait(.5)
- if cameraactive then
- local sound = Instance.new("Sound",workspace)
- sound.Volume = 1
- sound.SoundId = "rbxassetid://9068813222"
- sound.Looped = true
- sound.PlayOnRemove = true
- local sound2 = Instance.new("Sound",workspace)
- sound2.Volume = 1.5
- sound2.PlaybackSpeed = 1
- sound2.SoundId = "rbxassetid://376178316"
- sound2.Looped = true
- sound2.PlayOnRemove = true
- sound:Destroy()
- sound2:Destroy()
- cam.CameraType = Enum.CameraType.Scriptable
- else
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraType = game.Players.LocalPlayer.Character.Humanoid
- end
- ts:Create(Frame,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.In),{BackgroundTransparency = 1}):Play()
- local Search
- function Search(Parent, Function)
- for Index, Object in next, Parent:children() do
- pcall(function()
- Function(Object)
- end)
- Search(Object, Function)
- end
- end
- function showchar(char)
- coroutine.resume(coroutine.create(function()
- local Character = char
- Search(Character, function(Object)
- if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then
- Object.Transparency = 0
- end
- end)
- end))
- end
- function hidechar(char)
- coroutine.resume(coroutine.create(function()
- local Character = char
- Search(Character, function(Object)
- if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then
- Object.Transparency = 1
- end
- end)
- end))
- end
- local function OnRenderStep()
- if cameraactive then
- if zoom > 0.65 then
- local delta = userInputService:GetMouseDelta()
- cam.CFrame = CFrame.new(camerasubject.Position + Vector3.new(0,subtraction,0))
- delta = Vector2.new((delta.X*sens),(delta.Y*sens))
- deltaa = deltaa + (delta*Vector2.new(-1,-1))
- cam.CFrame = cam.CFrame * CFrame.Angles(0,deltaa.X,0) * CFrame.Angles(deltaa.Y,0,0) * CFrame.new(0,0,(zoom * (scale/1)))
- else
- local delta = userInputService:GetMouseDelta()
- cam.CFrame = CFrame.new(camerasubject.Position + Vector3.new(0,subtraction,0))
- delta = Vector2.new((delta.X*sens),(delta.Y*sens))
- deltaa = deltaa + (delta*Vector2.new(-1,-1))
- cam.CFrame = cam.CFrame * CFrame.Angles(0,deltaa.X,0) * CFrame.Angles(deltaa.Y,0,0)
- end
- end
- end
- runService:BindToRenderStep("MeasureMouseMovement", Enum.RenderPriority.Input.Value, OnRenderStep)
- -- CAR SCRIPT
- local gravity = 50
- local remote = game.Players.LocalPlayer:WaitForChild("wtfbrolol6")
- userInputService.InputBegan:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.MouseButton2 and not gameProcessed and zoom > 0.65 and cameraactive then
- userInputService.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
- elseif input.UserInputType == Enum.UserInputType.Keyboard and not gameProcessed then
- if input.KeyCode == Enum.KeyCode.Z and firstperson then
- workspace.CurrentCamera.FieldOfView = 10
- sens = 0.0125/10
- zoomed = true
- elseif input.KeyCode == Enum.KeyCode.W and cameraactive then
- remote:FireServer("StartW")
- elseif input.KeyCode == Enum.KeyCode.S and cameraactive then
- remote:FireServer("StartS")
- elseif input.KeyCode == Enum.KeyCode.A and cameraactive then
- remote:FireServer("StartA")
- elseif input.KeyCode == Enum.KeyCode.D and cameraactive then
- remote:FireServer("StartD")
- end
- end
- end)
- userInputService.InputEnded:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.MouseButton2 and not gameProcessed and zoom > 0.65 and cameraactive then
- userInputService.MouseBehavior = Enum.MouseBehavior.Default
- elseif input.UserInputType == Enum.UserInputType.Keyboard and not gameProcessed then
- if input.KeyCode == Enum.KeyCode.Z and zoomed then
- workspace.CurrentCamera.FieldOfView = 70
- sens = 0.0125
- zoomed = false
- elseif input.KeyCode == Enum.KeyCode.W and cameraactive then
- remote:FireServer("EndW")
- elseif input.KeyCode == Enum.KeyCode.S and cameraactive then
- remote:FireServer("EndS")
- elseif input.KeyCode == Enum.KeyCode.A and cameraactive then
- remote:FireServer("EndA")
- elseif input.KeyCode == Enum.KeyCode.D and cameraactive then
- remote:FireServer("EndD")
- elseif input.KeyCode == Enum.KeyCode.F and cameraactive then
- remote:FireServer("honk")
- elseif input.KeyCode == Enum.KeyCode.F5 then
- ts:Create(Frame,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{BackgroundTransparency = 0}):Play()
- wait(.5)
- cameraactive = not cameraactive
- if cameraactive then
- local sound = Instance.new("Sound",workspace)
- sound.Volume = 1
- sound.SoundId = "rbxassetid://9068813222"
- sound.Looped = true
- sound.PlayOnRemove = true
- local sound2 = Instance.new("Sound",workspace)
- sound2.Volume = 1.5
- sound2.PlaybackSpeed = 1
- sound2.SoundId = "rbxassetid://376178316"
- sound2.Looped = true
- sound2.PlayOnRemove = true
- sound:Destroy()
- sound2:Destroy()
- cam.CameraType = Enum.CameraType.Scriptable
- walkspeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- else
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = walkspeed
- end
- ts:Create(Frame,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.In),{BackgroundTransparency = 1}):Play()
- end
- end
- end)
- -- END OF CAR SCRIPT
- userInputService.InputChanged:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.MouseWheel and cameraactive then
- if not zoomed then
- if zoom + (input.Position.Z * -1 * (zoom/7)) >= 0 then
- if zoom > 0.65 or input.Position.Z == -1 then
- zoom = zoom + input.Position.Z * -1 * (zoom/7)
- end
- end
- else
- workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + ((input.Position.Z*-1)/2)
- sens = (workspace.CurrentCamera.FieldOfView/10) * (0.0125/10)
- end
- end
- end)]],s)
- --coroutine.resume(coroutine.create(function()
- while wait() do
- lilscoot.FrontL.HingeConstraint.AngularVelocity = currentspeed.Value
- lilscoot.BackL.HingeConstraint.AngularVelocity = currentspeed.Value
- lilscoot.FrontR.HingeConstraint.AngularVelocity = -currentspeed.Value
- lilscoot.BackR.HingeConstraint.AngularVelocity = -currentspeed.Value
- lilscoot.TurnRight.HingeConstraint.TargetAngle = currentdirection.Value
- lilscoot.TurnLeft.HingeConstraint.TargetAngle = currentdirection.Value
- sound.PlaybackSpeed = 0.8 + ((math.abs(currentspeed.Value)/70)*1.5)
- if not zooming and math.abs(currentspeed.Value) > 0.25 then
- zooming = true
- ts:Create(sound,TweenInfo.new(0.5,Enum.EasingStyle.Linear),{Volume = 0.5}):Play()
- ts:Create(sound2,TweenInfo.new(0.5,Enum.EasingStyle.Linear),{Volume = 0}):Play()
- elseif zooming and math.abs(currentspeed.Value) <= 0.25 then
- ts:Create(sound,TweenInfo.new(0.5,Enum.EasingStyle.Linear),{Volume = 0}):Play()
- ts:Create(sound2,TweenInfo.new(0.5,Enum.EasingStyle.Linear),{Volume = 0.5}):Play()
- zooming = false
- end
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(lilscoot:GetChildren()) do
- if v:IsA("BasePart") then
- v:SetNetworkOwner(owner)
- end
- end
- end))
- end
- --end))
Add Comment
Please, Sign In to add comment