Advertisement
sIendytubble

Principal of the thing script (DETENTION ROOM))

Apr 26th, 2020
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.75 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. slapspeedddd = 2
  153. clickmove = false
  154. plr = owner
  155. repeat wait() until plr.Character
  156. char = plr.Character
  157. humanoid = char.Humanoid
  158. humanoid.WalkSpeed = 50
  159. humanoid.Name = "Principal"
  160. happy = true
  161. humanoid.JumpPower = 0
  162. humanoid.Animator:Destroy()
  163. char.Animate:Destroy()
  164. char.Head:FindFirstChildOfClass("Decal"):Destroy()
  165. billboardgui = Instance.new("BillboardGui",char.Head)
  166. billboardgui.Size = UDim2.new(5, 0,9, 0)
  167. billboardgui.MaxDistance = math.huge
  168. billboardgui.ZIndexBehavior = "Global"
  169. billboardgui.LightInfluence = 1
  170. billboardgui.Enabled = true
  171. frame = Instance.new("Frame",billboardgui)
  172. frame.Size = UDim2.new(1, 0,1, 0)
  173. frame.Position = UDim2.new(0, 0,0, 0)
  174. frame.BackgroundTransparency = 1
  175. image = Instance.new("ImageLabel",frame)
  176. image.Image = "rbxassetid://1838288441"
  177. image.BackgroundTransparency = 1
  178. image.ScaleType = "Fit"
  179. image.Position = UDim2.new(0, 1,0, 1)
  180. image.Size = UDim2.new(1, 0,1, 0)
  181. local slap = Instance.new("Sound",char.Head)
  182. slap.SoundId = "rbxassetid://1804495872"
  183. slap.Volume = 10
  184. local theme = Instance.new("Sound",char.Head)
  185. theme.SoundId = "rbxassetid://1828370087"
  186. theme.Volume = 10
  187. theme.Looped = true
  188. local ohhi = Instance.new("Sound",char.Head)
  189. ohhi.SoundId = "rbxassetid://3101790973"
  190. ohhi.Volume = 10
  191. local congrats = Instance.new("Sound",char)
  192. congrats.SoundId = "rbxassetid://1846448410"
  193. congrats.Volume = 10
  194. local death = Instance.new("Sound",char)
  195. death.SoundId = "rbxassetid://1857731449"
  196. death.Volume = 10
  197. local doors = Instance.new("Sound",char)
  198. doors.SoundId = "rbxassetid://1847298619"
  199. doors.Volume = 10
  200.  
  201. mouse = plr:GetMouse()
  202. SpeedofBaldi = 40
  203. using = false
  204. char.Torso.Touched:connect(function(part)
  205.  
  206. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  207. if human and using == false and human.Name ~= "BadStudent" then
  208. using = true
  209. human.Name = "BadStudent"
  210. function decal(face,part,texture)
  211. decal = Instance.new("Decal",part)
  212. decal.Face = face
  213. decal.Texture = texture
  214. end
  215. function texture(face,part,texture,U,V)
  216. decal = Instance.new("Texture",part)
  217. decal.Face = face
  218. decal.Texture = texture
  219. decal.StudsPerTileU = U
  220. decal.StudsPerTileV = V
  221. end
  222. function tablebaldi(orientation,cframe1)
  223. tablee1 = Instance.new("Part",detentionmodel)
  224. tablee1.Size = Vector3.new(3, 3, 3)
  225. tablee1.Color = Color3.fromRGB(174, 143, 39)
  226. tablee1.Anchored = false
  227. tablee1.Orientation = orientation
  228. tablee2 = Instance.new("Part",detentionmodel)
  229. tablee2.Size = Vector3.new(3, 3, 3)
  230. tablee2.Color = Color3.fromRGB(174, 143, 39)
  231. tablee2.Anchored = false
  232. tablee2.Orientation = orientation
  233. tablee3 = Instance.new("Part",detentionmodel)
  234. tablee3.TopSurface = 0
  235. tablee3.BottomSurface = 0
  236. tablee3.Size = Vector3.new(3.8, 0.3, 9.8)
  237. tablee3.Color = Color3.fromRGB(174, 143, 39)
  238. tablee3.Anchored = true
  239. tablee3.Orientation = orientation
  240. tablee3.CFrame = cframe1 * CFrame.new(0,2.6,0) * CFrame.Angles(math.rad(orientation.X),math.rad(orientation.Y),math.rad(orientation.Z))
  241. weld = Instance.new("Weld",tablee1)
  242. weld.Part0 = tablee3
  243. weld.Part1 = tablee1
  244. weld.C0 = CFrame.new(0,-1.6,-3)
  245. weld2 = Instance.new("Weld",tablee1)
  246. weld2.Part0 = tablee3
  247. weld2.Part1 = tablee2
  248. weld2.C0 = CFrame.new(0,-1.6,3)
  249. end
  250. function makepart(classname,size,position,transparency,orientation,parent,cancollide,name)
  251. newpart = Instance.new(classname,parent)
  252. newpart.Size = size
  253. newpart.Position = position
  254. newpart.Transparency = transparency
  255. newpart.Orientation = orientation
  256. newpart.CanCollide = cancollide
  257. newpart.Anchored = true
  258. newpart.Name = name
  259. end
  260. detentionmodel = Instance.new("Model",workspace)
  261. detentionmodel.Name = "detention"
  262. light = Instance.new("Model",detentionmodel)
  263. light.Name = "Light"
  264. light1 = Instance.new("Part",light)
  265. light1.Position = Vector3.new(-1.227, 0.55, -7.955)
  266. light1.Size = Vector3.new(2, 0.2, 2)
  267. light1.CanCollide = false
  268. light1.Transparency = 1
  269. light1.Anchored = true
  270. light1.Name = "Light"
  271. brightlight1 = Instance.new("PointLight",light1)
  272. brightlight1.Brightness = 1
  273. brightlight1.Range = 40
  274. brightlight1.Color = Color3.fromRGB(255,255,255)
  275. brightlight1.Shadows = false
  276. light2 = Instance.new("Part",light)
  277. light2.Position = Vector3.new(-1.227, 0.55, 2.245)
  278. light2.Size = Vector3.new(2, 0.2, 2)
  279. light2.CanCollide = false
  280. light2.Transparency = 1
  281. light2.Anchored = true
  282. light2.Name = "Light"
  283. brightlight2 = Instance.new("PointLight",light2)
  284. brightlight2.Brightness = 1
  285. brightlight2.Range = 40
  286. brightlight2.Color = Color3.fromRGB(255,255,255)
  287. brightlight2.Shadows = false
  288. part1 = makepart("Part",Vector3.new(8, 0.4, 8),Vector3.new(-5.005, 0.25, -3.02),1,Vector3.new(0, -90, 0),detentionmodel,false,"tele2")
  289. part2 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(5.995, 6.049, -29.97),1,Vector3.new(0, 0, 0),detentionmodel,true,2)
  290. texture("Front",detentionmodel:WaitForChild("2"),"rbxassetid://1855034340",12,12)
  291. texture("Back",detentionmodel:WaitForChild("2"),"rbxassetid://1855034340",12,12)
  292. part3 = makepart("Part",Vector3.new(48.01, 0.05, 60.01),Vector3.new(0, 12.074, 0),0,Vector3.new(0, 0, 0),detentionmodel,true,3)
  293. texture("Bottom",detentionmodel:WaitForChild("3"),"rbxassetid://1855172128",10,10)
  294. texture("Top",detentionmodel:WaitForChild("3"),"rbxassetid://109519029",10,10)
  295. part4 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(23.971, 6.049, -23.994),0,Vector3.new(0, 0, 0),detentionmodel,true,4)
  296. texture("Right",detentionmodel:WaitForChild("4"),"rbxassetid://1855008797",6,6)
  297. texture("Left",detentionmodel:WaitForChild("4"),"rbxassetid://1855008797",6,6)
  298. texture("Front",detentionmodel:WaitForChild("4"),"rbxassetid://1855008797",6,6)
  299. texture("Back",detentionmodel:WaitForChild("4"),"rbxassetid://1855008797",6,6)
  300. part5 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(-13.729, 3.253, -20.872),1,Vector3.new(0, 0, 0),detentionmodel,true,5)
  301. part6 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(9.271, 3.253, 16.128),1,Vector3.new(0, 0, 0),detentionmodel,true,6)
  302.  
  303. part7 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(17.829, 6.049, 29.964),0,Vector3.new(0, 0, 0),detentionmodel,true,7)
  304. texture("Front",detentionmodel:WaitForChild("7"),"rbxassetid://1876923198",12,12)
  305. texture("Back",detentionmodel:WaitForChild("7"),"rbxassetid://1855008797",6,6)
  306. part8 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(23.971, 6.049, 12.006),0,Vector3.new(0, 0, 0),detentionmodel,true,8)
  307. texture("Left",detentionmodel:WaitForChild("8"),"rbxassetid://1866638381",12,12)
  308. texture("Right",detentionmodel:WaitForChild("8"),"rbxassetid://1855008797",6,6)
  309. part9 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(13.271, 3.253, -20.872),1,Vector3.new(0, 0, 0),detentionmodel,true,9)
  310. part10 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(-8.729, 3.253, 16.128),1,Vector3.new(0, 0, 0),detentionmodel,true,10)
  311. part11 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(4.271, 3.253, 21.128),1,Vector3.new(0, 0, 0),detentionmodel,true,11)
  312.  
  313. part12 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(23.971, 6.049, 0.006),0,Vector3.new(0, 0, 0),detentionmodel,true,12)
  314. texture("Left",detentionmodel:WaitForChild("12"),"rbxassetid://1866637183",12,12)
  315. texture("Right",detentionmodel:WaitForChild("12"),"rbxassetid://1855008797",6,6)
  316. part13 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-24.029, 6.049, -23.995),1,Vector3.new(0, 90, 0),detentionmodel,true,13)
  317. texture("Front",detentionmodel:WaitForChild("13"),"rbxassetid://1855034340",12,12)
  318. texture("Back",detentionmodel:WaitForChild("13"),"rbxassetid://1855034340",12,12)
  319. part14 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(-20.729, 3.253, 22.128),1,Vector3.new(0, 0, 0),detentionmodel,true,14)
  320. part15 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-24.029, 6.049, 12.005),1,Vector3.new(0, 90, 0),detentionmodel,true,15)
  321. texture("Front",detentionmodel:WaitForChild("15"),"rbxassetid://1855034340",12,12)
  322. texture("Back",detentionmodel:WaitForChild("15"),"rbxassetid://1855034340",12,12)
  323. part16 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-6.005, 6.049, 29.964),0,Vector3.new(0, 0, 0),detentionmodel,true,16)
  324. texture("Front",detentionmodel:WaitForChild("16"),"rbxassetid://1866653531",12,12)
  325. texture("Back",detentionmodel:WaitForChild("16"),"rbxassetid://1855008797",6,6)
  326.  
  327. part17 = makepart("Part",Vector3.new(1, 1.2, 1),Vector3.new(-1.729, 3.253, 21.128),1,Vector3.new(0, 0, 0),detentionmodel,true,17)
  328. part18 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(17.995, 6.049, -29.97),0,Vector3.new(0, 0, 0),detentionmodel,true,18)
  329. texture("Back",detentionmodel:WaitForChild("18"),"rbxassetid://1866639041",12,12)
  330. texture("Front",detentionmodel:WaitForChild("18"),"rbxassetid://1855008797",6,6)
  331. part19 = makepart("Part",Vector3.new(48, 0.05, 60),Vector3.new(-0.005, 0.025, -0.02),0,Vector3.new(0, 0, 0),detentionmodel,true,19)
  332. texture("Top",detentionmodel:WaitForChild("19"),"rbxassetid://1855094371",5,5)
  333. part20 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-18.005, 6.049, 29.964),0,Vector3.new(0, 0, 0),detentionmodel,true,20)
  334. texture("Front",detentionmodel:WaitForChild("20"),"rbxassetid://1866637793",12,12)
  335. texture("Back",detentionmodel:WaitForChild("20"),"rbxassetid://1855008797",6,6)
  336.  
  337. part21 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-6.005, 6.049, -29.97),0,Vector3.new(0, 0, 0),detentionmodel,true,21)
  338. texture("Back",detentionmodel:WaitForChild("21"),"rbxassetid://1866638854",12,12)
  339. texture("Front",detentionmodel:WaitForChild("21"),"rbxassetid://1855008797",6,6)
  340.  
  341. part22 = makepart("Part",Vector3.new(0.05, 12, 6.4),Vector3.new(-24.029, 6.049, 3.106),0,Vector3.new(0, 0, 0),detentionmodel,true,22)
  342. texture("Left",detentionmodel:WaitForChild("22"),"rbxassetid://1855008797",6,6)
  343. texture("Right",detentionmodel:WaitForChild("22"),"rbxassetid://1855008797",6,6)
  344. part23 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(5.995, 6.049, 29.964),0,Vector3.new(0, 0, 0),detentionmodel,true,23)
  345. texture("Front",detentionmodel:WaitForChild("23"),"rbxassetid://1861499453",12,12)
  346. texture("Back",detentionmodel:WaitForChild("23"),"rbxassetid://1855008797",6,6)
  347. part24 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(23.971, 6.049, -11.994),0,Vector3.new(0, 0, 0),detentionmodel,true,24)
  348. texture("Right",detentionmodel:WaitForChild("24"),"rbxassetid://1855008797",6,6)
  349. texture("Left",detentionmodel:WaitForChild("24"),"rbxassetid://1855008797",6,6)
  350. texture("Front",detentionmodel:WaitForChild("24"),"rbxassetid://1855008797",6,6)
  351. texture("Back",detentionmodel:WaitForChild("24"),"rbxassetid://1855008797",6,6)
  352. part25 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(23.971, 6.049, 24.005),1,Vector3.new(0, 90, 0),detentionmodel,true,25)
  353. texture("Front",detentionmodel:WaitForChild("25"),"rbxassetid://1855034340",12,12)
  354. texture("Back",detentionmodel:WaitForChild("25"),"rbxassetid://1855034340",12,12)
  355. part26 = makepart("Part",Vector3.new(12, 12, 0.05),Vector3.new(-18.005, 6.049, -29.97),0,Vector3.new(0, 0, 0),detentionmodel,true,26)
  356. texture("Right",detentionmodel:WaitForChild("26"),"rbxassetid://1855008797",6,6)
  357. texture("Left",detentionmodel:WaitForChild("26"),"rbxassetid://1855008797",6,6)
  358. texture("Front",detentionmodel:WaitForChild("26"),"rbxassetid://1855008797",6,6)
  359. texture("Back",detentionmodel:WaitForChild("26"),"rbxassetid://1855008797",6,6)
  360. part27 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(-24.029, 6.049, -11.994),0,Vector3.new(0, 0, 0),detentionmodel,true,27)
  361. texture("Right",detentionmodel:WaitForChild("27"),"rbxassetid://1866637185",12,12)
  362. texture("Left",detentionmodel:WaitForChild("27"),"rbxassetid://1855008797",6,6)
  363. part28 = makepart("Part",Vector3.new(0.05, 12, 12),Vector3.new(-24.029, 6.049, 24.006),0,Vector3.new(0, 0, 0),detentionmodel,true,28)
  364. texture("Right",detentionmodel:WaitForChild("28"),"rbxassetid://1855008797",6,6)
  365. texture("Left",detentionmodel:WaitForChild("28"),"rbxassetid://1855008797",6,6)
  366. texture("Front",detentionmodel:WaitForChild("28"),"rbxassetid://1855008797",6,6)
  367. texture("Back",detentionmodel:WaitForChild("28"),"rbxassetid://1855008797",6,6)
  368. door = Instance.new("Part",detentionmodel)
  369. door.Size = Vector3.new(0.05, 12, 6)
  370. door.Position = Vector3.new(-24.029, 6.049, -2.994)
  371. door.Transparency = 1
  372. door.Anchored = true
  373. decal = Instance.new("Decal",door)
  374. decal.Face = "Left"
  375. decal.Texture = "http://www.roblox.com/asset/?id=1804020342"
  376. decall = Instance.new("Decal",door)
  377. decall.Face = "Right"
  378. decall.Texture = "http://www.roblox.com/asset/?id=1804020342"
  379. tablebaldi(Vector3.new(0, 0, 0),CFrame.new(9.195, 0.549, 23.136))
  380. tablebaldi(Vector3.new(0, -90, 0),CFrame.new(18.195, 0.549, -20.864))
  381. tablebaldi(Vector3.new(0, 90, 0),CFrame.new(-12.805, 0.549, 16.136))
  382. tablebaldi(Vector3.new(0, 180, 0),CFrame.new(-20.805, 0.549, 18.136))
  383. tablebaldi(Vector3.new(0, 90, 0),CFrame.new(1.195, 0.549, 21.136))
  384. tablebaldi(Vector3.new(0, -90, 0),CFrame.new(-17.604, 0.549, -20.864))
  385. tablebaldi(Vector3.new(0, -90, 0),CFrame.new(8.396, 0.549, -20.864))
  386. tablebaldi(Vector3.new(0, 0, 0),CFrame.new(9.195, 0.549, 12.136))
  387. detentionmodel:MoveTo(Vector3.new(0,-10,0))
  388. if part.Parent:FindFirstChild("HumanoidRootPart") then
  389. part.Parent.HumanoidRootPart.CFrame = detentionmodel.tele2.CFrame
  390. elseif part.Parent:FindFirstChild("Torso") then
  391. part.Parent.Torso.CFrame = detentionmodel.tele2.CFrame
  392. end
  393. doors:Play()
  394. wait(0.1)
  395. using = false
  396. end
  397. end)
  398. for i,v in pairs(char:GetChildren()) do
  399. if v.ClassName == "Part" then
  400. v.Transparency = 1
  401.  
  402. elseif v.ClassName == "Accessory" then
  403. v.Handle.Transparency = 1
  404. end
  405. end
  406.  
  407. mouse.KeyDown:connect(function(key)
  408. if key == "p" then
  409. ohhi:Play()
  410. end
  411. end)
  412.  
  413. mouse.Button1Down:connect(function()
  414. move()
  415. end)
  416.  
  417. function move()
  418. death:Play()
  419. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement