Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("s")
- ds = Instance.new("Part",script)
- ds.Anchored = true
- ds.Size = Vector3.new(0.05,0.05,0.05)
- ds.Material = "SmoothPlastic"
- ds.Shape = "Ball"
- cutl = Instance.new("Part",script)
- cutl.Size = Vector3.new(0.0125,0.065,0.065)
- cutl.Anchored = true
- cutl.Shape = "Cylinder"
- local dr = ds:SubtractAsync({cutl})
- dr.Parent = script
- dr.Anchored = false
- task.wait()
- cutl:Destroy()
- ds:Destroy()
- local bf2 = Instance.new("BodyVelocity", dr)
- bf2.MaxForce = Vector3.new(math.huge,10000,math.huge)
- bf2.Velocity = Vector3.new()
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = dr
- object.Name = "droneb"
- task.wait()
- local tweenService = game:GetService("TweenService")
- local object = dr
- local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Back,Enum.EasingDirection.Out,0,false,0)
- local goal = {}
- goal.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,3,5)
- local drs2 = tweenService:Create(object, tweenInfo, goal)
- drs2:Play()
- coroutine.wrap(function()
- wait(0.75)
- bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- end)()
- p = Instance.new("Part",dr)
- p.Material = "SmoothPlastic"
- p.Size = Vector3.new(0.05,0.05,0.05)
- p.Name = "spinner"
- p.Color = Color3.fromRGB(75,75,75)
- p2 = Instance.new("Part",dr)
- p2.Material = "SmoothPlastic"
- p2.Color = Color3.fromRGB(25,25,25)
- p2.Reflectance = 0.0625
- p2.Size = Vector3.new(0.05,0.05,0.05)
- p4 = Instance.new("Part",dr)
- p4.Material = "Neon"
- p4.Color = Color3.fromRGB(0, 198, 224)
- p4.Size = Vector3.new(0.05,0.05,0.05)
- p5 = Instance.new("Part",dr)
- p5.Material = "Neon"
- p5.Color = Color3.fromRGB(0, 198, 224)
- p5.Size = Vector3.new(0.05,0.05,0.05)
- p3 = Instance.new("Part",dr)
- p3.Material = "SmoothPlastic"
- p3.Color = Color3.fromRGB(25,25,25)
- p3.Reflectance = 0.0625
- p3.Size = Vector3.new(0.05,0.05,0.05)
- local weld = Instance.new("Weld",dr)
- weld.Part0 = p
- weld.Part1 = dr
- local weld2 = Instance.new("Weld",p)
- weld2.Part0 = p2
- weld2.Part1 = p
- weld2.C0 = CFrame.new(0,-0.35,0)
- local weld3 = Instance.new("Weld",p)
- weld3.Part0 = p3
- weld3.Part1 = p
- weld3.C0 = CFrame.new(0,-0.35,0)
- dr.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,-1)
- local tweenService = game:GetService("TweenService")
- local object = dr
- local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
- local goal = {}
- goal.Size = Vector3.new(0.65,0.65,0.65)
- local drs = tweenService:Create(object, tweenInfo, goal)
- drs:Play()
- innercut = Instance.new("Part",dr)
- innercut.Size = Vector3.new(0.0125,0.045,0.045)
- innercut.Color = Color3.fromRGB(75,75,75)
- innercut.Shape = "Cylinder"
- local weld4 = Instance.new("Weld",dr)
- weld4.Part0 = innercut
- weld4.Part1 = dr
- innercut2 = Instance.new("Part",dr)
- innercut2.Size = Vector3.new(0.00625,0.0475,0.0475)
- innercut2.Color = Color3.fromRGB(75,75,75)
- innercut2.Shape = "Cylinder"
- innercut3 = Instance.new("Part",dr)
- innercut3.Size = Vector3.new(0.000625,0.0475,0.0475)
- innercut3.Color = Color3.fromRGB(0, 198, 224)
- innercut3.Shape = "Cylinder"
- innercut3.Material = "Neon"
- innercut4 = Instance.new("Part",dr)
- innercut4.Size = Vector3.new(0.000625,0.0475,0.0475)
- innercut4.Color = Color3.fromRGB(0, 198, 224)
- innercut4.Shape = "Cylinder"
- innercut4.Material = "Neon"
- innercut2.Reflectance = 0.075
- local weld5 = Instance.new("Weld",innercut)
- weld5.Part0 = innercut2
- weld5.Part1 = innercut
- local weld6 = Instance.new("Weld",innercut)
- weld6.Part0 = innercut3
- weld6.Part1 = innercut
- local weld7 = Instance.new("Weld",innercut)
- weld7.Part0 = innercut4
- weld7.Part1 = innercut
- local weld8 = Instance.new("Weld",p3)
- weld8.Part0 = p4
- weld8.Part1 = p3
- local weld9 = Instance.new("Weld",p2)
- weld9.Part0 = p5
- weld9.Part1 = p2
- local goal3 = {}
- goal3.Size = Vector3.new(0.1625,0.585,0.585)
- local drs3 = tweenService:Create(innercut, tweenInfo, goal3)
- drs3:Play()
- local goal4 = {}
- goal4.Size = Vector3.new(0.08125,0.6175,0.6175)
- local drs4 = tweenService:Create(innercut2, tweenInfo, goal4)
- local goal5 = {}
- goal5.Size = Vector3.new(0.008125,0.6225,0.6225)
- local drs5 = tweenService:Create(innercut3, tweenInfo, goal5)
- local goal6 = {}
- goal6.C0 = CFrame.new(0.015,0,0)
- local drs6 = tweenService:Create(weld6, tweenInfo, goal6)
- local goal7 = {}
- goal7.Size = Vector3.new(0.008125,0.6225,0.6225)
- local drs7 = tweenService:Create(innercut4, tweenInfo, goal7)
- local goal8 = {}
- goal8.C0 = CFrame.new(-0.015,0,0)
- local drs8 = tweenService:Create(weld7, tweenInfo, goal8)
- local goal9 = {}
- goal9.Size = Vector3.new(0.775,0.065,0.00625)
- local drs9 = tweenService:Create(p4, tweenInfo, goal9)
- local goal10 = {}
- goal10.Size = Vector3.new(0.775,0.065,0.00625)
- local drs10 = tweenService:Create(p5, tweenInfo, goal10)
- drs4:Play()
- drs7:Play()
- drs8:Play()
- drs5:Play()
- drs6:Play()
- drs9:Play()
- drs10:Play()
- task.wait()
- local tweenService = game:GetService("TweenService")
- local object = p
- local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,0,false,0)
- local goal = {}
- goal.Size = Vector3.new(0.125,0.75,0.125)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.C0 = CFrame.new(0,-0.5,0)
- local tween2 = tweenService:Create(weld, tweenInfo, goal2)
- tween:Play()
- tween2:Play()
- task.wait()
- local goal3 = {}
- goal3.Size = Vector3.new(0.75,0.0625,0.15)
- local tween3 = tweenService:Create(p2, tweenInfo, goal3)
- local goal4 = {}
- goal4.C0 = CFrame.new(-0.5,-0.35,0) * CFrame.Angles(math.rad(-15),0,0)
- goal4.C1 = CFrame.new(0,0,-0.0625)
- local tween4 = tweenService:Create(weld2, tweenInfo, goal4)
- local goal5 = {}
- goal5.Size = Vector3.new(0.75,0.0625,0.15)
- local tween5 = tweenService:Create(p3, tweenInfo, goal5)
- local goal6 = {}
- goal6.C0 = CFrame.new(0.5,-0.35,0) * CFrame.Angles(math.rad(15),0,0)
- goal6.C1 = CFrame.new(0,0,0.0625)
- local tween6 = tweenService:Create(weld3, tweenInfo, goal6)
- tween3:Play()
- tween4:Play()
- tween5:Play()
- tween6:Play()
- tween3.Completed:Wait()
- TweenService = game:GetService("TweenService")
- spininfo = TweenInfo.new(0.25,Enum.EasingStyle.Quart,Enum.EasingDirection.In)
- spininfo2 = TweenInfo.new(0.125,Enum.EasingStyle.Linear)
- Spin = TweenService:Create(weld,spininfo,{C0 = weld.C0 * CFrame.Angles(0,math.rad(120),0)})
- Spin1 = TweenService:Create(weld,spininfo2,{C0 = weld.C0 * CFrame.Angles(0,math.rad(120),0)})
- Spin2 = TweenService:Create(weld,spininfo2,{C0 = weld.C0 * CFrame.Angles(0,math.rad(240),0)})
- Spin3 = TweenService:Create(weld,spininfo2,{C0 = weld.C0 * CFrame.Angles(0,math.rad(360),0)})
- Spin:Play()
- Spin.Completed:Connect(function()Spin2:Play() end)
- Spin1.Completed:Connect(function()Spin2:Play() end)
- Spin2.Completed:Connect(function()Spin3:Play() end)
- Spin3.Completed:Connect(function()Spin1:Play() end)
- dr:SetNetworkOwner(owner)
- NLS([[
- up = false
- down = false
- isdrone = false
- mouse = owner:GetMouse()
- local dr = owner.PlayerGui.droneb.Value
- local bg = Instance.new("BodyGyro",dr)
- bg.P = 1000000
- bg.MaxTorque = Vector3.new(40000000, 40000000, 40000000)
- local r = owner.Character.HumanoidRootPart
- game:GetService("RunService").RenderStepped:Connect(function()
- pcall(function()
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not isdrone then
- lastcf = CFrame.lookAt(dr.Position,dr.Position + owner.Character.Humanoid.MoveDirection)
- dr.CFrame = CFrame.new(r.Position) * CFrame.new(0,4,2) * CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- bg.CFrame = CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- elseif not isdrone and owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- dr.CFrame = CFrame.new(r.Position) * CFrame.new(0,4,2) * CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- bg.CFrame = CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- elseif isdrone and owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- if up then
- dr.CFrame = CFrame.new(dr.Position) * CFrame.new(0,0.25,0) * CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- elseif down then
- dr.CFrame = CFrame.new(dr.Position) * CFrame.new(0,-0.25,0) * CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- else
- dr.CFrame = CFrame.new(dr.Position) * CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- end
- bg.CFrame = CFrame.Angles(lastcf:ToEulerAnglesXYZ())
- elseif isdrone and owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
- lastcf = CFrame.lookAt(dr.Position,dr.Position + owner.Character.Humanoid.MoveDirection)
- if up then
- dr.CFrame = CFrame.new(dr.Position) * CFrame.new(0,0.25,0) * CFrame.new(owner.Character.Humanoid.MoveDirection.X * 0.5,owner.Character.Humanoid.MoveDirection.Y * 0.5,owner.Character.Humanoid.MoveDirection.Z * 0.5)
- * CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- elseif down then
- dr.CFrame = CFrame.new(dr.Position) * CFrame.new(0,-0.25,0) * CFrame.new(owner.Character.Humanoid.MoveDirection.X * 0.5,owner.Character.Humanoid.MoveDirection.Y * 0.5,owner.Character.Humanoid.MoveDirection.Z * 0.5)
- * CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- else
- dr.CFrame = CFrame.new(dr.Position) * CFrame.new(owner.Character.Humanoid.MoveDirection.X * 0.5,owner.Character.Humanoid.MoveDirection.Y * 0.5,owner.Character.Humanoid.MoveDirection.Z * 0.5)
- * CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- end
- bg.CFrame = CFrame.Angles(lastcf:ToEulerAnglesXYZ())* CFrame.Angles(math.rad(-55),0,0)
- end
- end)
- end)
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "r" then
- if not isdrone then
- owner.Character.Humanoid.WalkSpeed = 0
- owner.Character.Humanoid.JumpPower = 0
- isdrone = true
- workspace.CurrentCamera.CameraSubject = dr
- elseif isdrone then
- owner.Character.Humanoid.JumpPower = 50
- owner.Character.Humanoid.WalkSpeed = 16
- isdrone = false
- workspace.CurrentCamera.CameraSubject = owner.Character
- end
- elseif key == "q" and isdrone then
- up = true
- elseif key == "e" and isdrone then
- down = true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key = key:lower()
- if key == "q" and isdrone then
- up = false
- elseif key == "e" and isdrone then
- down = false
- end
- end)
- ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement