Advertisement
Guest User

123213

a guest
Apr 20th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 86
  3.  
  4. local Scripts = { function()
  5. function onPlayerEntered(player)
  6. repeat wait () until player.Character ~= nil
  7. local s = script.SprintScript:clone()
  8. s.Parent = player.Character
  9. s.Disabled = false
  10. player.CharacterAdded:connect(function (char)
  11. local s = script.SprintScript:clone()
  12. s.Parent = char
  13. s.Disabled = false
  14. end)
  15. end
  16.  
  17. game.Players.PlayerAdded:connect(onPlayerEntered)
  18. end; function()
  19. local mouse = game.Players.bath1299:GetMouse()
  20. local running = false
  21.  
  22. function getTool()
  23. for _, kid in ipairs(script.Parent:GetChildren()) do
  24. if kid.className == "Tool" then return kid end
  25. end
  26. return nil
  27. end
  28.  
  29.  
  30. mouse.KeyDown:connect(function (key) -- Run function
  31. key = string.lower(key)
  32. if string.byte(key) == 48 then
  33. running = true
  34. local keyConnection = mouse.KeyUp:connect(function (key)
  35. if string.byte(key) == 48 then
  36. running = false
  37. end
  38. end)
  39. for i = 1,5 do
  40. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  41. wait()
  42. end
  43. game.Players.bath1299.Character.Humanoid.WalkSpeed = 25
  44. repeat wait () until running == false
  45. keyConnection:disconnect()
  46. game.Players.bath1299.Character.Humanoid.WalkSpeed = 16
  47. for i = 1,5 do
  48. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  49. wait()
  50. end
  51. end
  52. end)
  53. end;}local ActualScripts = {}
  54. function s(var)
  55. local func = table.remove(Scripts,1)
  56. local env = getfenv(func)
  57. local newenv = setmetatable({},{
  58. __index = function(self,k)
  59. if k=="script" then
  60. return var
  61. else
  62. return env[k]
  63. end
  64. end,
  65. })
  66. setfenv(func,newenv)
  67. table.insert(ActualScripts,coroutine.wrap(func))
  68. end
  69.  
  70. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  71. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  72. function(t,f)
  73. for a,b in pairs(t) do
  74. f(a,b)
  75. end
  76. end
  77. local Types = {
  78. Color3 = Color3.new,
  79. Vector3 = Vector3.new,
  80. Vector2 = Vector2.new,
  81. UDim = UDim.new,
  82. UDim2 = UDim2.new,
  83. CFrame = CFrame.new,
  84. Rect = Rect.new,
  85. NumberRange = NumberRange.new,
  86. NumberSequence = function(...)
  87. local a = {...}
  88. local t = {}
  89. repeat
  90. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  91. until #a==0
  92. return NumberSequence.new(t)
  93. end,
  94. ColorSequence = function(...)
  95. local a = {...}
  96. local t = {}
  97. repeat
  98. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  99. until #a==0
  100. return ColorSequence.new(t)
  101. end,
  102. number = tonumber,
  103. boolean = function(a)
  104. return a=="true"
  105. end
  106. }
  107. split = function(str,sep)
  108. if not str then return end
  109. local fields = {}
  110. local ConcatNext = false
  111. str:gsub(("([^%s]+)"):format(sep),function(c)
  112. if ConcatNext == true then
  113. fields[#fields] = fields[#fields]..sep..c
  114. ConcatNext = false
  115. else
  116. fields[#fields+1] = c
  117. end
  118. if c:sub(#c)=="\\" then
  119. c = fields[#fields]
  120. fields[#fields] = c:sub(1,#c-1)
  121. ConcatNext = true
  122. end
  123. end)
  124. return fields
  125. end
  126. RemoveAndSplit = function(t)
  127. return split(table_remove(t,1),comma)
  128. end
  129. t = split(str,";")
  130. props = RemoveAndSplit(t)
  131. classes = RemoveAndSplit(t)
  132. values = split(table_remove(t,1),'|')
  133. ICList = RemoveAndSplit(t)
  134. InstanceList = {}
  135. Model = inst"Model"
  136. CurPar = Model
  137. table_foreach(t,function(ct,c)
  138. if c=="n" or c=="p" then
  139. CurPar = c=="n" and LastIns or CurPar[parnt]
  140. else
  141. ct = split(c,"|")
  142. local class = classes[tonum(table_remove(ct,1))]
  143. if class=="UnionOperation" then
  144. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  145. else
  146. LastIns = inst(class)
  147. if LastIns:IsA"Script" then
  148. s(LastIns)
  149. end
  150. end
  151.  
  152. local function SetProperty(LastIns,p,str,s)
  153. s = Types[typeof(LastIns[p])]
  154. LastIns[p] = s and s(unpack(split(str,comma))) or str
  155. end
  156.  
  157. local UnionData
  158. table_foreach(ct,function(s,p,a,str)
  159. a = p:find":"
  160. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  161. if p=="UnionData" then
  162. UnionData = split(str," ")
  163. return
  164. end
  165. if class=="UnionOperation" then
  166. LastIns[p] = str
  167. return
  168. end
  169. SetProperty(LastIns,p,str)
  170. end)
  171.  
  172. if UnionData then
  173. local LI_Data = LastIns
  174. LastIns = DecodeUnion(UnionData)
  175. table_foreach(LI_Data,function(p,str)
  176. SetProperty(LastIns,p,str)
  177. end)
  178. end
  179. table.insert(InstanceList,LastIns)
  180. LastIns[parnt] = CurPar
  181. end
  182. end)
  183. table_remove(ICList,1)
  184. table_foreach(ICList,function(a,b)
  185. b = split(b,">")
  186. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  187. end)
  188.  
  189. return Model
  190. end
  191.  
  192. local Model = Decode('Name;Part,Script,LocalScript;Part|SprintScriptImporter|SprintScript;0;2|1:2;n;3|1:3;p;'
  193. ..'')
  194. Model.Parent = script and script.Parent==workspace and script or workspace
  195. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement