Advertisement
cat568

Untitled

Mar 16th, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --just put this on the top of a script and boom 89% works
  2. --note this does not work on big scripts
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127. self._btrs[name] = self.Heartbeat:Connect(fun)
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146.  
  147. --By Rufus14 and fixed by raulib
  148. mouse = game.Players.LocalPlayer:GetMouse()
  149. game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
  150. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  151. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  152. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  153. rhandweld.C1 = CFrame.new(0,1,0)
  154. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  155. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  156. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  157. lhandweld.C1 = CFrame.new(0,1,0)
  158. --Converted with ttyyuu12345's model to script plugin v4
  159. function sandbox(var,func)
  160. local env = getfenv(func)
  161. local newenv = setmetatable({},{
  162. __index = function(self,k)
  163. if k=="script" then
  164. return var
  165. else
  166. return env[k]
  167. end
  168. end,
  169. })
  170. setfenv(func,newenv)
  171. return func
  172. end
  173. cors = {}
  174. mas = Instance.new("Model",game:GetService("Lighting"))
  175. Model0 = Instance.new("Model")
  176. Part1 = Instance.new("Part")
  177. Part2 = Instance.new("Part")
  178. Part3 = Instance.new("Part")
  179. Decal4 = Instance.new("Decal")
  180. Part5 = Instance.new("Part")
  181. Part6 = Instance.new("Part")
  182. Weld7 = Instance.new("Weld")
  183. Weld8 = Instance.new("Weld")
  184. Weld9 = Instance.new("Weld")
  185. Weld10 = Instance.new("Weld")
  186. Weld11 = Instance.new("Weld")
  187. Weld12 = Instance.new("Weld")
  188. Weld13 = Instance.new("Weld")
  189. Part14 = Instance.new("Part")
  190. Part15 = Instance.new("Part")
  191. Decal16 = Instance.new("Decal")
  192. Part17 = Instance.new("Part")
  193. Decal18 = Instance.new("Decal")
  194. Decal19 = Instance.new("Decal")
  195. Model0.Name = "camera"
  196. Model0.Parent = mas
  197. Part1.Name = "cam"
  198. Part1.Parent = Model0
  199. Part1.BrickColor = BrickColor.new("Sand violet metallic")
  200. Part1.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  201. Part1.Size = Vector3.new(1, 0.200000033, 0.200000003)
  202. Part1.CFrame = CFrame.new(-38.4794807, 12.683094, -35.7457619, 0.0123719107, -0.212127253, 0.977163732, -0.0975575149, 0.972321033, 0.212311149, -0.99515301, -0.0979562849, -0.00866513234)
  203. Part1.BottomSurface = Enum.SurfaceType.Smooth
  204. Part1.TopSurface = Enum.SurfaceType.Smooth
  205. Part1.Color = Color3.new(0.584314, 0.556863, 0.639216)
  206. Part1.Position = Vector3.new(-38.4794807, 12.683094, -35.7457619)
  207. Part1.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  208. Part1.Color = Color3.new(0.584314, 0.556863, 0.639216)
  209. Part2.Name = "cam"
  210. Part2.Parent = Model0
  211. Part2.BrickColor = BrickColor.new("Sand violet metallic")
  212. Part2.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  213. Part2.Size = Vector3.new(1, 0.200000033, 0.200000003)
  214. Part2.CFrame = CFrame.new(-38.3097763, 11.9052372, -35.6673965, 0.0123719098, -0.212127239, 0.977163732, -0.0975574926, 0.972320795, 0.212311089, -0.99515301, -0.0979562849, -0.00866513234)
  215. Part2.BottomSurface = Enum.SurfaceType.Smooth
  216. Part2.TopSurface = Enum.SurfaceType.Smooth
  217. Part2.Color = Color3.new(0.584314, 0.556863, 0.639216)
  218. Part2.Position = Vector3.new(-38.3097763, 11.9052372, -35.6673965)
  219. Part2.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  220. Part2.Color = Color3.new(0.584314, 0.556863, 0.639216)
  221. Part3.Name = "cameraah"
  222. Part3.Parent = Model0
  223. Part3.BrickColor = BrickColor.new("Sand violet metallic")
  224. Part3.Transparency = 1
  225. Part3.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  226. Part3.Size = Vector3.new(1, 0.649999857, 0.0500000007)
  227. Part3.CFrame = CFrame.new(-38.7521629, 12.2222872, -36.6011162, 0.0123719107, -0.212127253, 0.977163732, -0.0975575149, 0.972321033, 0.212311149, -0.99515301, -0.0979562849, -0.00866513234)
  228. Part3.BottomSurface = Enum.SurfaceType.Smooth
  229. Part3.TopSurface = Enum.SurfaceType.Smooth
  230. Part3.Color = Color3.new(0.584314, 0.556863, 0.639216)
  231. Part3.Position = Vector3.new(-38.7521629, 12.2222872, -36.6011162)
  232. Part3.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  233. Part3.Color = Color3.new(0.584314, 0.556863, 0.639216)
  234. Decal4.Parent = Part3
  235. Decal4.Texture = "http://www.roblox.com/asset/?id=120551690"
  236. Part5.Name = "cam"
  237. Part5.Parent = Model0
  238. Part5.BrickColor = BrickColor.new("Sand violet metallic")
  239. Part5.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  240. Part5.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  241. Part5.CFrame = CFrame.new(-38.40205, 12.3527012, -35.1094894, 0.0123719107, -0.212127253, 0.977163732, -0.0975575149, 0.972321033, 0.212311149, -0.99515301, -0.0979562849, -0.00866513234)
  242. Part5.BottomSurface = Enum.SurfaceType.Smooth
  243. Part5.TopSurface = Enum.SurfaceType.Smooth
  244. Part5.Color = Color3.new(0.584314, 0.556863, 0.639216)
  245. Part5.Position = Vector3.new(-38.40205, 12.3527012, -35.1094894)
  246. Part5.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  247. Part5.Color = Color3.new(0.584314, 0.556863, 0.639216)
  248. Part6.Name = "band"
  249. Part6.Parent = Model0
  250. Part6.Material = Enum.Material.Concrete
  251. Part6.BrickColor = BrickColor.new("Black")
  252. Part6.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  253. Part6.Size = Vector3.new(1, 0.200000033, 1)
  254. Part6.CFrame = CFrame.new(-37.4792252, 12.3322554, -37.5004349, 0.0123719098, -0.212127239, 0.977163732, -0.0975574702, 0.972320557, 0.212311044, -0.99515301, -0.0979562849, -0.00866513234)
  255. Part6.BottomSurface = Enum.SurfaceType.Smooth
  256. Part6.TopSurface = Enum.SurfaceType.Smooth
  257. Part6.Color = Color3.new(0.101961, 0.164706, 0.203922)
  258. Part6.Position = Vector3.new(-37.4792252, 12.3322554, -37.5004349)
  259. Part6.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  260. Part6.Color = Color3.new(0.101961, 0.164706, 0.203922)
  261. Weld7.Parent = Part6
  262. Weld7.C0 = CFrame.new(-1.79277039, -0.41857338, -0.918128967, 1, -2.23517418e-08, -4.65661287e-09, -2.23517418e-08, 1.00000024, 4.89526428e-08, -4.65661287e-09, 4.89526428e-08, 1)
  263. Weld7.Part0 = Part6
  264. Weld7.Part1 = Part2
  265. Weld8.Parent = Part6
  266. Weld8.C0 = CFrame.new(-1.7927742, -0.0185718536, -0.918132782, 1, -2.23517418e-08, -4.65661287e-09, -2.23517418e-08, 1.00000024, 4.89526428e-08, -4.65661287e-09, 4.89526428e-08, 1)
  267. Weld8.Part0 = Part6
  268. Weld8.Part1 = Part17
  269. Weld9.Parent = Part6
  270. Weld9.C0 = CFrame.new(-0.900001526, 0, -0.150009155, 1, -2.23517418e-08, -4.65661287e-09, -2.23517418e-08, 1.00000024, 4.89526428e-08, -4.65661287e-09, 4.89526428e-08, 1)
  271. Weld9.Part0 = Part6
  272. Weld9.Part1 = Part14
  273. Weld10.Parent = Part6
  274. Weld10.C0 = CFrame.new(-2.39276886, -0.0185718536, -0.918128967, 1, -4.47034836e-08, -1.02445483e-08, -4.47034836e-08, 1.00000048, 1.08557288e-07, -8.38190317e-09, 9.36561264e-08, 1)
  275. Weld10.Part0 = Part6
  276. Weld10.Part1 = Part5
  277. Weld11.Parent = Part6
  278. Weld11.C0 = CFrame.new(-1.79277039, 0.381427765, -0.918132782, 1, -4.47034836e-08, -1.02445483e-08, -4.47034836e-08, 1.00000048, 1.08557288e-07, -8.38190317e-09, 9.36561264e-08, 1)
  279. Weld11.Part0 = Part6
  280. Weld11.Part1 = Part1
  281. Weld12.Parent = Part6
  282. Weld12.C0 = CFrame.new(-2.16775894, 0.156429291, -0.918140411, 1, -4.47034836e-08, -1.02445483e-08, -4.47034836e-08, 1.00000048, 1.08557288e-07, -8.38190317e-09, 9.36561264e-08, 1)
  283. Weld12.Part0 = Part6
  284. Weld12.Part1 = Part15
  285. Weld13.Parent = Part6
  286. Weld13.C0 = CFrame.new(-0.899978638, 0.075006485, -1.27500916, 1, -4.47034836e-08, -1.02445483e-08, -4.47034836e-08, 1.00000048, 1.08557288e-07, -8.38190317e-09, 9.36561264e-08, 1)
  287. Weld13.Part0 = Part6
  288. Weld13.Part1 = Part3
  289. Part14.Name = "cam"
  290. Part14.Parent = Model0
  291. Part14.BrickColor = BrickColor.new("Sand violet metallic")
  292. Part14.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  293. Part14.Size = Vector3.new(0.800000012, 1, 2.29999971)
  294. Part14.CFrame = CFrame.new(-37.6369438, 12.3882084, -36.6034966, 0.0123719098, -0.212127239, 0.977163732, -0.0975574479, 0.972320318, 0.212311, -0.99515301, -0.0979562849, -0.00866513234)
  295. Part14.BottomSurface = Enum.SurfaceType.Smooth
  296. Part14.TopSurface = Enum.SurfaceType.Smooth
  297. Part14.Color = Color3.new(0.584314, 0.556863, 0.639216)
  298. Part14.Position = Vector3.new(-37.6369438, 12.3882084, -36.6034966)
  299. Part14.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  300. Part14.Color = Color3.new(0.584314, 0.556863, 0.639216)
  301. Part15.Name = "cam"
  302. Part15.Parent = Model0
  303. Part15.BrickColor = BrickColor.new("Sand violet metallic")
  304. Part15.Transparency = 1
  305. Part15.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  306. Part15.Size = Vector3.new(0.150000006, 0.150000036, 0.200000003)
  307. Part15.CFrame = CFrame.new(-38.4364014, 12.5009041, -35.3505516, 0.0123719107, -0.212127253, 0.977163732, -0.0975575149, 0.972321033, 0.212311149, -0.99515301, -0.0979562849, -0.00866513234)
  308. Part15.BottomSurface = Enum.SurfaceType.Smooth
  309. Part15.TopSurface = Enum.SurfaceType.Smooth
  310. Part15.Color = Color3.new(0.584314, 0.556863, 0.639216)
  311. Part15.Position = Vector3.new(-38.4364014, 12.5009041, -35.3505516)
  312. Part15.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  313. Part15.Color = Color3.new(0.584314, 0.556863, 0.639216)
  314. Decal16.Parent = Part15
  315. Decal16.Texture = "rbxassetid://117959738"
  316. Decal16.Face = Enum.NormalId.Back
  317. Part17.Name = "cam"
  318. Part17.Parent = Model0
  319. Part17.BrickColor = BrickColor.new("Sand violet metallic")
  320. Part17.Transparency = 1
  321. Part17.Rotation = Vector3.new(-92.3399963, 77.7299957, 86.659996)
  322. Part17.Size = Vector3.new(1, 0.600000024, 0.200000003)
  323. Part17.CFrame = CFrame.new(-38.3946304, 12.2941666, -35.7065735, 0.0123719098, -0.212127239, 0.977163732, -0.0975574926, 0.972320795, 0.212311089, -0.99515301, -0.0979562849, -0.00866513234)
  324. Part17.BottomSurface = Enum.SurfaceType.Smooth
  325. Part17.TopSurface = Enum.SurfaceType.Smooth
  326. Part17.Color = Color3.new(0.584314, 0.556863, 0.639216)
  327. Part17.Position = Vector3.new(-38.3946304, 12.2941666, -35.7065735)
  328. Part17.Orientation = Vector3.new(-12.2599993, 90.5099945, -5.73000002)
  329. Part17.Color = Color3.new(0.584314, 0.556863, 0.639216)
  330. Decal18.Parent = Part17
  331. Decal18.Texture = "rbxassetid://165477810"
  332. Decal18.Face = Enum.NormalId.Back
  333. Decal19.Parent = Part17
  334. Decal19.Texture = "http://www.roblox.com/asset/?id=154987705"
  335. for i,v in pairs(mas:GetChildren()) do
  336. v.Parent = game:GetService("Players").LocalPlayer.Character
  337. pcall(function() v:MakeJoints() end)
  338. end
  339. mas:Destroy()
  340. for i,v in pairs(cors) do
  341. spawn(function()
  342. pcall(v)
  343. end)
  344. end
  345. local weeld = Instance.new("Weld", Part6)
  346. weeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  347. weeld.Part1 = Part6
  348. weeld.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2*2,0,0) * CFrame.new(0,0.5,0)
  349. delayy = 0
  350. -- Objects
  351.  
  352. local framedelay = Instance.new("ScreenGui")
  353. local TextLabel = Instance.new("TextLabel")
  354. local less = Instance.new("TextButton")
  355. local more = Instance.new("TextButton")
  356.  
  357. -- Properties
  358.  
  359. framedelay.Name = "framedelay"
  360. framedelay.Parent = game.Players.LocalPlayer.PlayerGui
  361.  
  362. TextLabel.Parent = framedelay
  363. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  364. TextLabel.BackgroundTransparency = 1
  365. TextLabel.Position = UDim2.new(0.775349796, 0, 0.914686918, 0)
  366. TextLabel.Size = UDim2.new(0, 307, 0, 66)
  367. TextLabel.Font = Enum.Font.Code
  368. TextLabel.FontSize = Enum.FontSize.Size14
  369. TextLabel.Text = "Frame Delay: "..delayy
  370. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  371. TextLabel.TextScaled = true
  372. TextLabel.TextSize = 14
  373. TextLabel.TextWrapped = true
  374.  
  375. less.Name = "less"
  376. less.Parent = framedelay
  377. less.BackgroundColor3 = Color3.new(1, 1, 1)
  378. less.BackgroundTransparency = 1
  379. less.Position = UDim2.new(0.665102601, 0, 0.924479187, 0)
  380. less.Size = UDim2.new(0, 73, 0, 50)
  381. less.Font = Enum.Font.SourceSansBold
  382. less.FontSize = Enum.FontSize.Size14
  383. less.Text = "<"
  384. less.TextScaled = true
  385. less.TextSize = 14
  386. less.TextWrapped = true
  387.  
  388. more.Name = "more"
  389. more.Parent = framedelay
  390. more.BackgroundColor3 = Color3.new(1, 1, 1)
  391. more.BackgroundTransparency = 1
  392. more.Position = UDim2.new(0.718543291, 0, 0.924479187, 0)
  393. more.Size = UDim2.new(0, 73, 0, 50)
  394. more.Font = Enum.Font.SourceSansBold
  395. more.FontSize = Enum.FontSize.Size14
  396. more.Text = ">"
  397. more.TextScaled = true
  398. more.TextSize = 14
  399. more.TextWrapped = true
  400. cameratocam = false
  401. UserInputService = game:GetService("UserInputService")
  402. function moree()
  403. delayy = delayy + 0.001
  404. TextLabel.Text = "Frame Delay: "..delayy
  405. end
  406. more.MouseButton1Down:connect(moree)
  407. function lesss()
  408. delayy = delayy - 0.001
  409. TextLabel.Text = "Frame Delay: "..delayy
  410. end
  411. less.MouseButton1Down:connect(lesss)
  412. function mousedown()
  413. cameratocam = true
  414. end
  415. mouse.Button1Down:connect(mousedown)
  416. function mouseup()
  417. cameratocam = false
  418. finished = true
  419. local frameval = 0
  420. workspace.CurrentCamera.CameraType = "Scriptable"
  421. workspace.CurrentCamera.FieldOfView = 90
  422. -- Objects
  423.  
  424. local ScreenGuii = Instance.new("ScreenGui")
  425. local ImageLabeli = Instance.new("ImageLabel")
  426.  
  427. -- Properties
  428.  
  429. ScreenGuii.Parent = game.Players.LocalPlayer.PlayerGui
  430.  
  431. ImageLabeli.Parent = ScreenGuii
  432. ImageLabeli.BackgroundColor3 = Color3.new(1, 1, 1)
  433. ImageLabeli.Size = UDim2.new(0, 400, 0, 37)
  434. ImageLabeli.Image = "rbxassetid://794422693"
  435. ImageLabeli.BorderSizePixel = 0
  436. local song = Instance.new("Sound", game.Players.LocalPlayer.PlayerGui)
  437. local songmath = math.random(1,3)
  438. if songmath == 1 then
  439. song.SoundId = "rbxassetid://607043786"
  440. end
  441. if songmath == 2 then
  442. song.SoundId = "rbxassetid://227322163"
  443. end
  444. if songmath == 3 then
  445. song.SoundId = "rbxassetid://1441338035"
  446. end
  447. song:Play()
  448. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  449. if v.ClassName == "Model" then
  450. if v:findFirstChild("isaframe") then
  451. frameval = frameval + 1
  452. local function search(aa)
  453. for q,w in pairs(aa:GetChildren()) do
  454. search(w)
  455. if w.Name == "cameraah" then
  456. workspace.CurrentCamera.CFrame = w.CFrame
  457. end
  458. end
  459. end
  460. search(v)
  461. wait(delayy)
  462. v:destroy()
  463. end
  464. end
  465. end
  466. workspace.CurrentCamera.CameraType = "Custom"
  467. workspace.CurrentCamera.FieldOfView = 70
  468. workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  469. ScreenGuii:destroy()
  470. finished = false
  471. song:destroy()
  472. print("Frames "..frameval)
  473. end
  474. mouse.Button1Up:connect(mouseup)
  475. function look()
  476. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
  477. lhandweld.C0 = CFrame.new(-1.5,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y)/2,0,0) * CFrame.Angles(0,0,0)
  478. rhandweld.C0 = CFrame.new(1.5,0,0.5) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y)* 0.6,0,0) * CFrame.Angles(3,0,0.1)
  479. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
  480. end
  481. game:GetService("RunService").RenderStepped:connect(look)
  482. finished = false
  483. val = 0
  484. moveval = 0
  485. while true do
  486. if cameratocam and not finished then
  487. val = val + 1
  488. local model = Instance.new("Model", workspace.CurrentCamera)
  489. model.Name = val
  490. local isafr = Instance.new("BoolValue", model)
  491. isafr.Name = "isaframe"
  492. for i,v in pairs(workspace:GetChildren()) do
  493. if v.ClassName == "Part" or v.ClassName == "Model" or v.ClassName == "MeshPart" then
  494. v.Archivable = true
  495. cancaptrue = true
  496. local cl = v:Clone()
  497. if cl.Name == "Base" or cl.Name == "Baseplate" then
  498.  
  499. else
  500. cl.Name = "captrued"
  501. end
  502. if cl.ClassName == "Part" or cl.ClassName == "Union" or cl.ClassName == "MeshPart" then
  503. cl.Anchored = true
  504. if (cl.Position - Part3.Position).magnitude > 70 then
  505. if cl.Name == "Baseplate" or cl.Name == "Base" then
  506. else
  507. cancaptrue = false
  508. cl:Remove()
  509. end
  510. else
  511. cl.Anchored = true
  512. end
  513. end
  514. if cl.ClassName == "Model" then
  515. cl.Parent = model
  516. local function search(aa)
  517. for q,w in pairs(aa:GetChildren()) do
  518. search(w)
  519. if w.ClassName == "Part" or w.ClassName == "Union" or w.ClassName == "MeshPart" then
  520. if (w.Position - Part3.Position).magnitude > 70 and w.Name ~= "Baseplate" and w.Name ~= "Base" then
  521. cancaptrue = false
  522. w:Remove()
  523. else
  524. w.Anchored = true
  525. end
  526. end
  527. end
  528. end
  529. search(cl)
  530. end
  531. if cancaptrue then
  532. cl.Parent = model
  533. end
  534. end
  535. end
  536. model:MoveTo(Vector3.new(math.random(10000,1000000),math.random(10000,1000000),math.random(100000,1000000)))
  537. if delayy <=0 then wait() else
  538. wait(delayy)
  539. end
  540. end
  541. game:GetService("RunService").RenderStepped:wait()
  542. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement