Advertisement
TheUnknownDiscord

anti skid bunker

Mar 21st, 2022 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.75 KB | None | 0 0
  1. local blinds = "rbxassetid://5168055564"
  2. local blinds2 = "rbxassetid://3657933537"
  3. local door = "rbxassetid://179054361"
  4. local error = "rbxassetid://5659540384"
  5. local pan = "rbxassetid://2669587516"
  6. local computer = "rbxassetid://8578490603"
  7. local sound = Instance.new("Sound")
  8. sound.PlayOnRemove = true
  9. sound.Volume = 1
  10. local part = Instance.new("SpawnLocation",script)
  11. part.Enabled = false
  12. part.Anchored = true
  13. part.Size = Vector3.new(6,8,0.85)
  14. part.CFrame = owner.Character.Head.CFrame * CFrame.new(0,-8.5,0)
  15. local decal = Instance.new("Texture",part)
  16. decal.Texture = "rbxassetid://7632434457"
  17. decal.Face = "Front"
  18. decal.StudsPerTileU = 6
  19. decal.StudsPerTileV = 8
  20. local decal = Instance.new("Texture",part)
  21. decal.Texture = "rbxassetid://7632434457"
  22. decal.Face = "Back"
  23. decal.StudsPerTileU = 6
  24. decal.StudsPerTileV = 8
  25. part.Color = Color3.fromRGB(84, 84, 84)
  26. part.Material = "Metal"
  27. part.Reflectance = 0.125
  28. local Sensor = Instance.new("SpawnLocation", script)
  29. Sensor.Enabled = false
  30. Sensor.Size = Vector3.new(1,1.125,0.25)
  31. Sensor.CFrame = owner.Character.Head.CFrame * CFrame.new(4.25,0.85,0.5)
  32. Sensor.Anchored = true
  33. Sensor.Color = Color3.fromRGB(150, 0, 0)
  34. Sensor.Material = "Neon"
  35. Sensor.CanCollide = false
  36. local Sensor2 = Instance.new("SpawnLocation", script)
  37. Sensor2.Enabled = false
  38. Sensor2.Size = Vector3.new(1,1.125,0.25)
  39. Sensor2.CFrame = owner.Character.Head.CFrame * CFrame.new(4.25,-0.85,0.5)
  40. Sensor2.Anchored = true
  41. Sensor2.Color = Color3.fromRGB(120, 120, 120)
  42. Sensor2.Material = "Neon"
  43. Sensor2.CanCollide = false
  44. local wall = Instance.new("SpawnLocation", script)
  45. wall.Enabled = false
  46. wall.Size = Vector3.new(3.25,8,1)
  47. wall.CFrame = owner.Character.Head.CFrame * CFrame.new(4.5,0,0)
  48. wall.Anchored = true
  49. wall.Material = "SmoothPlastic"
  50. local wall2 = Instance.new("SpawnLocation", script)
  51. wall2.Enabled = false
  52. wall2.Size = Vector3.new(5.35,2.5,1)
  53. wall2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-2.75,0)
  54. wall2.Anchored = true
  55. wall2.Material = "SmoothPlastic"
  56. local windo = Instance.new("SpawnLocation", script)
  57. windo.Enabled = false
  58. windo.Size = Vector3.new(5.5,0.125,1.125)
  59. windo.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-1.5,0)
  60. windo.Anchored = true
  61. windo.Material = "SmoothPlastic"
  62. windo.Color = Color3.fromRGB(50,50,50)
  63. local windo2 = Instance.new("SpawnLocation", script)
  64. windo2.Enabled = false
  65. windo2.Size = Vector3.new(5.5,0.125,1.125)
  66. windo2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,3.525,0)
  67. windo2.Anchored = true
  68. windo2.Material = "SmoothPlastic"
  69. windo2.Color = Color3.fromRGB(50,50,50)
  70. local windo3 = Instance.new("SpawnLocation", script)
  71. windo3.Enabled = false
  72. windo3.Size = Vector3.new(0.125,5,1.125)
  73. windo3.CFrame = owner.Character.Head.CFrame * CFrame.new(6.0725,1,0)
  74. windo3.Anchored = true
  75. windo3.Material = "SmoothPlastic"
  76. windo3.Color = Color3.fromRGB(50,50,50)
  77. local windo4 = Instance.new("SpawnLocation", script)
  78. windo4.Enabled = false
  79. windo4.Size = Vector3.new(0.125,5,1.125)
  80. windo4.CFrame = owner.Character.Head.CFrame * CFrame.new(11.4225,1,0)
  81. windo4.Anchored = true
  82. windo4.Material = "SmoothPlastic"
  83. windo4.Color = Color3.fromRGB(50,50,50)
  84. local windo5 = Instance.new("SpawnLocation", script)
  85. windo5.Enabled = false
  86. windo5.Size = Vector3.new(5.5,5,0.85)
  87. windo5.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,1,0)
  88. windo5.Anchored = true
  89. windo5.Material = "Glass"
  90. windo5.Transparency = 0.75
  91. local blind = Instance.new("SpawnLocation", script)
  92. blind.Enabled = false
  93. blind.Size = Vector3.new(5.25,1.1875,0.125)
  94. blind.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-0.85,-0.5)
  95. blind.Anchored = true
  96. blind.Material = "SmoothPlastic"
  97. local blind2 = Instance.new("SpawnLocation", script)
  98. blind2.Enabled = false
  99. blind2.Size = Vector3.new(5.25,1.1875,0.125)
  100. blind2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,2.85,-0.5)
  101. blind2.Anchored = true
  102. blind2.Material = "SmoothPlastic"
  103. local blind3 = Instance.new("SpawnLocation", script)
  104. blind3.Enabled = false
  105. blind3.Size = Vector3.new(5.25,1.1875,0.125)
  106. blind3.CFrame = blind2.CFrame * CFrame.new(0,-1.225,0)
  107. blind3.Anchored = true
  108. blind3.Material = "SmoothPlastic"
  109. local blind4 = Instance.new("SpawnLocation", script)
  110. blind4.Enabled = false
  111. blind4.Size = Vector3.new(5.25,1.1875,0.125)
  112. blind4.CFrame = blind.CFrame * CFrame.new(0,1.225,0)
  113. blind4.Anchored = true
  114. blind4.Material = "SmoothPlastic"
  115. local wall3 = Instance.new("SpawnLocation", script)
  116. wall3.Enabled = false
  117. wall3.Size = Vector3.new(2.75,8,1)
  118. wall3.CFrame = owner.Character.Head.CFrame * CFrame.new(12.75,0,0)
  119. wall3.Anchored = true
  120. wall3.Material = "SmoothPlastic"
  121. local wall4 = Instance.new("SpawnLocation", script)
  122. wall4.Enabled = false
  123. wall4.Size = Vector3.new(20.55,0.85,21.005)
  124. wall4.CFrame = owner.Character.Head.CFrame * CFrame.new(4,4,10)
  125. wall4.Anchored = true
  126. wall4.Material = "SmoothPlastic"
  127. local wall5 = Instance.new("SpawnLocation", script)
  128. wall5.Enabled = false
  129. wall5.Size = Vector3.new(3.25,8,1)
  130. wall5.CFrame = owner.Character.Head.CFrame * CFrame.new(-4.65,0,0)
  131. wall5.Anchored = true
  132. wall5.Material = "SmoothPlastic"
  133. local wall6 = Instance.new("SpawnLocation", script)
  134. wall6.Enabled = false
  135. wall6.Size = Vector3.new(1,8,21)
  136. wall6.CFrame = owner.Character.Head.CFrame * CFrame.new(13.75,0,10)
  137. wall6.Anchored = true
  138. wall6.Material = "SmoothPlastic"
  139. local wall7 = Instance.new("SpawnLocation", script)
  140. wall7.Enabled = false
  141. wall7.Size = Vector3.new(1,8,21)
  142. wall7.CFrame = owner.Character.Head.CFrame * CFrame.new(-5.75,0,10)
  143. wall7.Anchored = true
  144. wall7.Material = "SmoothPlastic"
  145. local wall8 = Instance.new("SpawnLocation", script)
  146. wall8.Enabled = false
  147. wall8.Size = Vector3.new(19,8,1)
  148. wall8.CFrame = owner.Character.Head.CFrame * CFrame.new(4,0,20)
  149. wall8.Anchored = true
  150. wall8.Material = "SmoothPlastic"
  151. local wall9 = Instance.new("SpawnLocation", script)
  152. wall9.Enabled = false
  153. wall9.Size = Vector3.new(20.55,0.85,21.005)
  154. wall9.CFrame = owner.Character.Head.CFrame * CFrame.new(4,-4.35,10)
  155. wall9.Anchored = true
  156. wall9.Material = "SmoothPlastic"
  157. bodyparts = {}
  158. function protectlimb(part,props,index)
  159. if not part then return end
  160. local index,props = index or #bodyparts+1,props or {Parent = part.Parent}
  161. bodyparts[index] = part
  162. part.Parent = props.Parent
  163. part.AncestryChanged:Connect(function(part,newparent)
  164. if newparent == NULL or newparent == nil then
  165. local newp = part:Clone()
  166. newp.Name = part.Name
  167. newp.Parent = props.Parent
  168. protectlimb(newp,props,index)
  169. elseif newparent ~= nil and not part:IsDescendantOf(props.Parent) then
  170. part.Parent = props.Parent
  171. end
  172. end)
  173. return bodyparts[index]
  174. end
  175. table.foreach(script:GetDescendants(),function(i,v) if v:IsA("BasePart") then protectlimb(v) end end)
  176. local cam = Instance.new("Part", script)
  177. cam.Size = Vector3.new(0.5,0.5,1)
  178. cam.CFrame = owner.Character.Head.CFrame * CFrame.new(-5,5,-0.75) * CFrame.Angles(0,math.rad(-65),0) * CFrame.Angles(math.rad(-35),0,0)
  179. cam.Anchored = true
  180. cam.Material = "SmoothPlastic"
  181. local cirbcle = Instance.new("Part",script)
  182. cirbcle.Size = Vector3.new(0.125,0.45,0.45)
  183. cirbcle.Shape = "Cylinder"
  184. cirbcle.Material = "SmoothPlastic"
  185. cirbcle.Color = Color3.fromRGB(50,50,50)
  186. local wel = Instance.new("Weld",cam)
  187. wel.Part0 = cirbcle
  188. wel.Part1 = cam
  189. wel.C0 = CFrame.new(0.5,0,0) * CFrame.Angles(0,math.rad(90),0)
  190. local pc = Instance.new("Part", script)
  191. pc.Size = Vector3.new(1.5,1.5,1.5)
  192. pc.CFrame = owner.Character.Head.CFrame * CFrame.new(-2,-0.5,19)
  193. pc.Anchored = true
  194. pc.Material = "SmoothPlastic"
  195. local pcstand = Instance.new("Part", script)
  196. pcstand.Size = Vector3.new(3,0.25,1.5)
  197. pcstand.CFrame = owner.Character.Head.CFrame * CFrame.new(-2,-1.25,19)
  198. pcstand.Anchored = true
  199. pcstand.Material = "SmoothPlastic"
  200. local mesh = Instance.new("SpecialMesh",pc)
  201. mesh.TextureId = "rbxassetid://1263007159"
  202. mesh.MeshId = "rbxassetid://1263004833"
  203. local x,y,z = owner.Character.Head.CFrame:ToEulerAnglesXYZ()
  204. local tweenService = game:GetService("TweenService")
  205. local timeToFade = 2
  206. local object = cam
  207. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  208. local goal = {}
  209. goal.CFrame = CFrame.new(object.Position) * CFrame.Angles(x,y,z) * CFrame.Angles(0,math.rad(-65),0) * CFrame.Angles(math.rad(-35),0,0)
  210.  
  211. local tween = tweenService:Create(object, tweenInfo, goal)
  212. local goal = {}
  213. goal.CFrame = CFrame.new(object.Position) * CFrame.Angles(x,y,z) * CFrame.Angles(0,math.rad(-25),0) * CFrame.Angles(math.rad(-35),0,0)
  214.  
  215. local tween2 = tweenService:Create(object, tweenInfo, goal)
  216. tween:Play()
  217. tween.Completed:Connect(function()
  218. wait(2)
  219. tween2:Play()
  220. sound.PlaybackSpeed = 1
  221. sound.Parent = cam
  222. sound.SoundId = pan
  223. sound.Volume = 1
  224. sound.Parent = nil
  225. end)
  226. tween2.Completed:Connect(function()
  227. wait(2)
  228. tween:Play()
  229. sound.Parent = cam
  230. sound.SoundId = pan
  231. sound.Volume = 1
  232. sound.Parent = nil
  233. end)
  234. local camstic = Instance.new("Part", script)
  235. camstic.Size = Vector3.new(0.125,0.125,1)
  236. camstic.CFrame = owner.Character.Head.CFrame * CFrame.new(-5,4.5,-0.5) * CFrame.Angles(math.rad(35),0,0)
  237. camstic.Anchored = true
  238. camstic.Material = "SmoothPlastic"
  239. local clickDetector = Instance.new("ClickDetector")
  240. clickDetector.Parent = Sensor
  241. clickDetector.MaxActivationDistance = 10
  242. local clickDetector2 = Instance.new("ClickDetector")
  243. clickDetector2.Parent = Sensor2
  244. clickDetector2.MaxActivationDistance = 10
  245. local clickDetector3 = Instance.new("ClickDetector")
  246. clickDetector3.Parent = pc
  247. clickDetector3.MaxActivationDistance = 10
  248. local count = 0
  249. local count2 = 0
  250. local tweenService = game:GetService("TweenService")
  251. local timeToFade = 0.125
  252. local object = part
  253. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  254. local goal = {}
  255. goal.CFrame = object.CFrame * CFrame.new(0,8.5,0)
  256.  
  257. local doorshut = tweenService:Create(object, tweenInfo, goal)
  258. local tweenService = game:GetService("TweenService")
  259. local timeToFade = 0.125
  260. local object = part
  261. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  262. local goal = {}
  263. goal.CFrame = object.CFrame
  264.  
  265. local dooropen = tweenService:Create(object, tweenInfo, goal)
  266. local tweenService = game:GetService("TweenService")
  267. local timeToFade = 0.125
  268. local object = blind
  269. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  270. local goal = {}
  271. goal.CFrame = object.CFrame * CFrame.new(0,3.5,0) * CFrame.Angles(math.rad(50),0,0)
  272.  
  273. local openblind = tweenService:Create(object, tweenInfo, goal)
  274. local goal = {}
  275. goal.CFrame = object.CFrame
  276.  
  277. local closeblind = tweenService:Create(object, tweenInfo, goal)
  278. local object = blind2
  279. local goal = {}
  280. goal.CFrame = object.CFrame * CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(50),0,0)
  281.  
  282. local openblind2 = tweenService:Create(object, tweenInfo, goal)
  283. local goal = {}
  284. goal.CFrame = object.CFrame
  285.  
  286. local closeblind2 = tweenService:Create(object, tweenInfo, goal)
  287. local object = blind3
  288. local goal = {}
  289. goal.CFrame = object.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(50),0,0)
  290.  
  291. local openblind3 = tweenService:Create(object, tweenInfo, goal)
  292. local goal = {}
  293. goal.CFrame = object.CFrame
  294.  
  295. local closeblind3 = tweenService:Create(object, tweenInfo, goal)
  296. local object = blind4
  297. local goal = {}
  298. goal.CFrame = object.CFrame * CFrame.new(0,2.5,0)* CFrame.Angles(math.rad(50),0,0)
  299.  
  300. local openblind4 = tweenService:Create(object, tweenInfo, goal)
  301. local goal = {}
  302. goal.CFrame = object.CFrame
  303. local errordb = false
  304. local closeblind4 = tweenService:Create(object, tweenInfo, goal)
  305. clickDetector.MouseClick:Connect(function(plr)
  306. if (plr == owner or plr:IsFriendsWith(owner.UserId)) and count == 0 then
  307. count += 1
  308. doorshut:Play()
  309. Sensor.Color = Color3.fromRGB(38, 209, 0)
  310. sound.PlaybackSpeed = 1
  311. sound.Parent = part
  312. sound.SoundId = door
  313. sound.Volume = 0.35
  314. sound.Parent = nil
  315. elseif (plr == owner or plr:IsFriendsWith(owner.UserId)) and count == 1 then
  316. count = 0
  317. dooropen:Play()
  318. sound.PlaybackSpeed = 1
  319. sound.Parent = part
  320. sound.SoundId = door
  321. sound.Volume = 0.35
  322. sound.Parent = nil
  323. Sensor.Color = Color3.fromRGB(150, 0, 0)
  324. elseif (plr ~= owner and not plr:IsFriendsWith(owner.UserId)) and not errordb then
  325. errordb = true
  326. sound.PlaybackSpeed = 1
  327. sound.Parent = Sensor
  328. sound.SoundId = error
  329. sound.Volume = 0.5
  330. sound.Parent = nil
  331. wait(0.75)
  332. errordb = false
  333. end
  334. end)
  335. clickDetector2.MouseClick:Connect(function(plr)
  336. if (plr == owner or plr:IsFriendsWith(owner.UserId)) and count2 == 0 then
  337. count2 += 1
  338. openblind:Play()
  339. openblind2:Play()
  340. openblind3:Play()
  341. openblind4:Play()
  342. sound.PlaybackSpeed = 1
  343. sound.Parent = blind
  344. sound.SoundId = blinds
  345. sound.Volume = 0.0625
  346. sound.Parent = nil
  347. wait()
  348. sound.PlaybackSpeed = 1.5
  349. sound.Parent = blind
  350. sound.SoundId = blinds2
  351. sound.Volume = 0.5
  352. sound.Parent = nil
  353. Sensor2.Color = Color3.fromRGB(227, 227, 227)
  354. elseif (plr == owner or plr:IsFriendsWith(owner.UserId)) and count2 == 1 then
  355. count2 = 0
  356. closeblind:Play()
  357. closeblind2:Play()
  358. closeblind3:Play()
  359. closeblind4:Play()
  360. sound.PlaybackSpeed = 1
  361. sound.Parent = blind
  362. sound.SoundId = blinds
  363. sound.Volume = 0.25
  364. sound.Parent = nil
  365. wait()
  366. sound.PlaybackSpeed = 1.5
  367. sound.Parent = blind
  368. sound.SoundId = blinds2
  369. sound.Volume = 0.75
  370. sound.Parent = nil
  371. Sensor2.Color = Color3.fromRGB(120,120,120)
  372. elseif (plr ~= owner and not plr:IsFriendsWith(owner.UserId)) and not errordb then
  373. errordb = true
  374. sound.PlaybackSpeed = 1
  375. sound.Parent = Sensor
  376. sound.SoundId = error
  377. sound.Volume = 0.5
  378. sound.Parent = nil
  379. wait(0.75)
  380. errordb = false
  381. end
  382. end)
  383. e = Instance.new("RemoteEvent",owner.Character)
  384. NLS([[
  385. e = script.Parent
  386. local active = false
  387. local baw = Instance.new("ColorCorrectionEffect",workspace.CurrentCamera)
  388. local cf = nil
  389. local lastcam = workspace.CurrentCamera.CameraType
  390. mouse = owner:GetMouse()
  391. mouse.KeyDown:Connect(function(key)
  392. key = key:lower()
  393. if active and key == "b" then
  394. active = false
  395. baw.Saturation = 0
  396. workspace.CurrentCamera.CameraType = lastcam
  397. end
  398. end)
  399. local pccf = nil
  400. e.OnClientEvent:Connect(function(what,cfa,pcc)
  401. if what == "pard" then
  402. cf = cfa
  403. pccf = pcc
  404. elseif what == "letsgo" then
  405. workspace.CurrentCamera.CameraType = "Scriptable"
  406. local tweenService = game:GetService("TweenService")
  407. local timeToFade = 1
  408. local object = workspace.CurrentCamera
  409. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  410. local goal = {}
  411. goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,2)
  412.  
  413. local tween = tweenService:Create(object, tweenInfo, goal)
  414. tween:Play()
  415. tween.Completed:Wait()
  416. local tweenService = game:GetService("TweenService")
  417. local timeToFade = 0.125
  418. local object = workspace.CurrentCamera
  419. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  420. local goal = {}
  421. goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,3)
  422.  
  423. local tween = tweenService:Create(object, tweenInfo, goal)
  424. tween:Play()
  425. tween.Completed:Wait()
  426. local tweenService = game:GetService("TweenService")
  427. local timeToFade = 0.25
  428. local object = workspace.CurrentCamera
  429. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  430. local goal = {}
  431. goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,1)
  432.  
  433. local tween = tweenService:Create(object, tweenInfo, goal)
  434. tween:Play()
  435. tween.Completed:Wait()
  436. active = true
  437. baw.Saturation = -1
  438. end
  439. end)
  440. game:GetService("RunService").RenderStepped:Connect(function()
  441. if active then
  442. workspace.CurrentCamera.CFrame = cf.CFrame * CFrame.new(0,0,-0.75)
  443. end
  444. end)
  445. ]],e)
  446. e:FireClient(owner,"pard",cam,pc)
  447. clickDetector3.MouseClick:Connect(function(plr)
  448. if plr == owner then
  449. e:FireClient(owner,"letsgo")
  450. sound.PlaybackSpeed = 1
  451. sound.Parent = pc
  452. sound.SoundId = computer
  453. sound.Volume = 1
  454. sound.Parent = nil
  455. elseif plr ~= owner and not errordb then
  456. errordb = true
  457. sound.PlaybackSpeed = 1
  458. sound.Parent = pc
  459. sound.SoundId = error
  460. sound.Volume = 0.5
  461. sound.Parent = nil
  462. wait(0.75)
  463. errordb = false
  464. end
  465. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement