Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- --inspired by rick and morty
- --FilteringEnabled compatible
- --only void scrript builder compatible
- killdebounce = false
- mouse = nil
- sitdebounce = false
- sitting = false
- lp = owner
- char = lp.Character
- head = char.Head
- stand = Instance.new("Part",workspace)
- stand.Size = Vector3.new(8,1,8)
- stand.BrickColor = BrickColor.Black()
- stand.CFrame = head.CFrame + Vector3.new(0,5,0)
- stand.Anchored = false
- ufob = Instance.new("Part",workspace)
- ufob.BrickColor = BrickColor.Gray()
- ufob.Shape = Enum.PartType.Ball
- ufob.Size = Vector3.new(8,8,8)
- ufob.Transparency = 0.5
- ufob.Anchored = true
- ufob.CanCollide = false
- protectpart = Instance.new("Part",workspace)
- protectpart.Shape = Enum.PartType.Ball
- protectpart.Size = Vector3.new(16,16,16)
- protectpart.Transparency = 0.75
- protectpart.Anchored = true
- protectpart.CanCollide = false
- protectpart.BrickColor = BrickColor.Blue()
- protectpart.Touched:connect(function(killhit)
- if killdebounce == false then
- killdebounce = true
- if killhit.Parent ~= char and killhit.Parent.Parent ~= char and killhit.Parent:FindFirstChildOfClass("Humanoid") then
- killhit.Anchored = true
- wait(1)
- killpart = Instance.new("Part",workspace)
- killpart.Anchored = true
- killpart.CanCollide = false
- killpart.Transparency = 0.5
- killpart.Shape = Enum.PartType.Ball
- killpart.Size = Vector3.new(1,1,1)
- killpart.BrickColor = BrickColor.Blue()
- killpart.CFrame = killhit.Parent.Head.CFrame - Vector3.new(0,1.5,0)
- for i=1, 10 do
- wait(0.1)
- killpart.Size = Vector3.new(i,i,i)
- end
- wait(1)
- killpart.BrickColor = BrickColor.Red()
- wait(1)
- for i=1, 10 do
- wait(0.1)
- killpart.Size = Vector3.new(11-i,11-i,11-i)
- end
- killpart:Destroy()
- e = Instance.new("Explosion")
- e.BlastPressure = 0
- e.BlastRadius = 0
- e.Position = killhit.Parent.Head.Position
- e.Parent = workspace
- killhit.Parent.Head:BreakJoints()
- killhit.Anchored = false
- end
- wait(2.5)
- killdebounce = false
- end
- end)
- stand.Touched:connect(function(hit)
- if hit.Parent == char then
- if sitdebounce == false then
- sitdebounce = true
- sitting = true
- repeat
- wait(0.01)
- until sitting == false
- wait(5)
- sitdebounce = false
- end
- end
- end)
- exittool = Instance.new("Tool",lp.Backpack)
- exittool.RequiresHandle = false
- exittool.Name = "Exit UFO"
- exittool.ToolTip = "Equip to exit UFO"
- exittool.Equipped:connect(function()
- if sitting then
- sitting = false
- wait(0.1)
- exittool.Parent = lp.Backpack
- end
- end)
- controlling = false
- ctool = Instance.new("Tool",lp.Backpack)
- ctool.RequiresHandle = false
- ctool.Name = "Control UFO"
- ctool.ToolTip = "Click to move ufo to location"
- ctool.Equipped:connect(function(setmouse)
- if sitting then
- mouse = setmouse
- end
- end)
- ctool.Unequipped:connect(function()
- controlling = false
- char:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
- end)
- ctool.Activated:connect(function()
- if sitting then
- controlling = true
- char:FindFirstChildOfClass("Humanoid").WalkSpeed = 35
- end
- end)
- while true do
- wait(0.01)
- ufob.CFrame = stand.CFrame + Vector3.new(0,4.5,0)
- if sitting == true then
- if controlling == false then
- head.CFrame = stand.CFrame + Vector3.new(0,5,0)
- end
- protectpart.Parent = nil
- end
- if sitting == false then
- protectpart.Parent = workspace
- protectpart.CFrame = ufob.CFrame
- end
- if controlling == true then
- stand.CFrame = CFrame.new(head.CFrame.X,stand.CFrame.Y,head.CFrame.Z)
- wait(0.1)
- head.CFrame = stand.CFrame + Vector3.new(0,5,0)
- wait(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement