Advertisement
Guest User

Untitled

a guest
May 28th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. --WARNING read the READ ME script before useing this one
  2. colorz="New Yeller"
  3. sizez=Vector3.new(4,4,1)
  4. ndeb=true
  5. function build(msg)
  6. if not duck then return nil end
  7. m=Instance.new("Part",workspace)
  8. m.Name="Build"
  9. m.BottomSurface="Smooth"
  10. m.TopSurface="Smooth"
  11. m.Anchored=true
  12. m.FormFactor=0
  13. m.Size=Vector3.new(20,10,1)
  14. m.CFrame=duck.CFrame
  15. if msg:len()>1 then
  16. colorz=msg
  17. m.BrickColor=BrickColor.new(colorz)
  18. else
  19. m.BrickColor=BrickColor.new(colorz)
  20. end
  21. end
  22. function clr()
  23. for i,v in pairs(workspace:children()) do
  24. if v:IsA("Part") and v.Name=="Build" then
  25. v:remove()
  26. end
  27. end
  28. end
  29.  
  30.  
  31.  
  32.  
  33.  
  34. function noclip()
  35. mouse=player:GetMouse()
  36. wwalk=false
  37. swalk=false
  38. awalk=false
  39. dwalk=false
  40. function cha(n1,n2,n3)
  41. if duck and ndeb then duck.CFrame=CFrame.new(duck.Position,cur.CoordinateFrame.p)*CFrame.Angles(0,math.rad(180),0)*CFrame.new(n1,n2,n3) end
  42. end
  43. mouse.KeyDown:connect(function(key)
  44. if key:lower()=="w" then
  45. wwalk=true
  46. end
  47. if key:lower()=="s" then
  48. swalk=true
  49. end
  50. if key:lower()=="a" then
  51. awalk=true
  52. end
  53. if key:lower()=="d" then
  54. dwalk=true
  55. end
  56. end)
  57. mouse.KeyUp:connect(function(key)
  58. if key:lower()=="w" then
  59. wwalk=false
  60. end
  61. if key:lower()=="s" then
  62. swalk=false
  63. end
  64. if key:lower()=="d" then
  65. dwalk=false
  66. end
  67. if key:lower()=="a" then
  68. awalk=false
  69. end
  70. end)
  71. cur=workspace.CurrentCamera
  72. while wait() do
  73. if wwalk then
  74. cha(0,0,-1)
  75. end
  76. if swalk then
  77. cha(0,0,1)
  78. end
  79. if awalk then
  80. cha(-1,0,0)
  81. end
  82. if dwalk then
  83. cha(1,0,0)
  84. end
  85. cha(0,0,0)
  86. end
  87. end
  88.  
  89.  
  90.  
  91.  
  92.  
  93. function respawn(pos)
  94. if duck then duck:remove() end
  95. ndeb=true
  96. duck=Instance.new("Part",workspace)
  97. duck.Archivable=false
  98. duck.FormFactor=0
  99. duck.Size=Vector3.new(2,2,2)
  100. duck.Anchored=true
  101. duck.Locked=true
  102. duck.Name="DUCKEH"
  103. duck.CanCollide=false
  104. duck.Position=pos
  105. wel=Instance.new("Weld",duck)
  106. wel.Part1=duck
  107. workspace.CurrentCamera.CameraSubject=duck
  108. workspace.CurrentCamera.CameraType=Enum.CameraType.Follow
  109. me=Instance.new("SpecialMesh",duck)
  110. me.MeshId="http://www.roblox.com/asset/?id=9419831"
  111. me.TextureId="http://www.roblox.com/asset/?id=9419827"
  112. me.Scale=Vector3.new(1.25,1.25,1.25)
  113. fiya=Instance.new("Fire",duck)
  114. fiya.Size=3
  115. fiya.Color=Color3.new(1,1,0)
  116. fiya.SecondaryColor=fiya.Color
  117. pointa=Instance.new("PointLight",duck)
  118. pointa.Color=Color3.new(1,1,0)
  119. pointa.Range=8
  120. pointa.Shadows=true
  121. end
  122.  
  123.  
  124.  
  125.  
  126.  
  127. function chatup(label)
  128. local varb=0
  129. while not label.TextFits do
  130. wait()
  131. if label.TextFits then
  132. break
  133. end
  134. label.Size=label.Size+UDim2.new(0,4,0,0)
  135. label.Position=label.Position+UDim2.new(0,-2,0,0)
  136. end
  137. for i=1,120 do
  138. wait(.1)
  139. varb=varb+1
  140. if label then
  141. label.Position=label.Position-UDim2.new(0,0,0,1)
  142. if varb>=100 then
  143. label.BackgroundTransparency=label.BackgroundTransparency+.025
  144. label.TextTransparency=label.TextTransparency+.05
  145. end
  146. end
  147. end
  148. label:remove()
  149. end
  150.  
  151.  
  152.  
  153.  
  154.  
  155. function chat(msg)
  156. if not duck then return nil end
  157. local Upos=UDim2.new(0,250,0,210)
  158. local siz=msg:len()*9
  159. local layers=1
  160. local bb=Instance.new("BillboardGui",duck)
  161. local lab=Instance.new("TextLabel",bb)
  162. bb.Size=UDim2.new(0,500,0,500)
  163. bb.Adornee=duck
  164. lab.FontSize=Enum.FontSize.Size12
  165. lab.TextWrapped=true
  166. lab.BackgroundColor3=Color3.new(1,1,0)
  167. lab.BackgroundTransparency=.5
  168. if siz>140 then
  169. siz=(siz-140)
  170. layers=layers+1
  171. if siz>140*2 then
  172. layers=layers+1
  173. siz=(siz-140)
  174. end
  175. end
  176. local guisize=UDim2.new(0,siz,0,layers*18)
  177. local cap=guisize.X.Offset*guisize.Y.Offset
  178. if cap<msg:len()*10 then
  179. siz=(msg:len()*10)/layers
  180. end
  181. if siz>140 then
  182. siz=140
  183. end
  184. local guisize=UDim2.new(0,siz,0,layers*18)
  185. print(siz)
  186. lab.Size=guisize
  187. lab.Position=Upos-UDim2.new(0,siz/2,0,(layers*18)/2)
  188. lab.Text=msg
  189. chatup(lab)
  190. end
  191.  
  192.  
  193.  
  194.  
  195.  
  196. function finishspec()
  197. pcall(function()
  198. respawn(duck.Position)
  199. if contplr then
  200. contplr.Transparency=0
  201. if contplr:findFirstChild("face") then
  202. contplr.face.Transparency=0
  203. end
  204. if contplr.Parent then for i,v in pairs(contplr.Parent:children()) do
  205. if v:IsA("Hat") and v:findFirstChild("Handle") then
  206. v.Handle.Transparency=0
  207. end
  208. end end
  209. end
  210. end)
  211. end
  212.  
  213.  
  214.  
  215.  
  216.  
  217. function spectate(msg)
  218. if msg:len()>1 and duck then
  219. for i,v in pairs(game.Players:players()) do
  220. if v.Name:lower()==v.Name:lower():match(msg.."%w+") and duck and v.Character:findFirstChild("Head") then
  221. if contplr then
  222. contplr.Transparency=0
  223. end
  224. contplr=v.Character.Head
  225. duck.Anchored=false
  226. ndeb=false
  227. if duck:findFirstChild("Weld") then
  228. duck.Weld.Part0=contplr
  229. end
  230. contplr.Transparency=1
  231. if contplr:findFirstChild("face") then contplr.face.Transparency=1 end
  232. for i,v in pairs(contplr.Parent:children()) do
  233. if v:IsA("Hat") and v:findFirstChild("Handle") then
  234. v.Handle.Transparency=1
  235. end
  236. end
  237. end
  238. end
  239. elseif duck then
  240. finishspec()
  241. end
  242. end
  243.  
  244.  
  245.  
  246.  
  247.  
  248. --type this one in first then type the rest in with the .s command like .s CODE
  249. wait()
  250. player=game.Players.LocalPlayer
  251. player:destroy()
  252. player.Chatted:connect(function(msg)
  253. if msg:lower():sub(1,2)==".s" then
  254. pcall(function()
  255. loadstring(msg:sub(4))()
  256. end)
  257. end
  258. end)
  259. repeat wait()
  260. until chat and build and noclip and respawn and spectate and finishspec and chatup and clr
  261. player.Chatted:connect(function(msg)
  262. if msg:lower():sub(1,2)==".b" then
  263. build(msg:sub(4))
  264. elseif msg:lower():sub(1,5)==".resp" then
  265. respawn(Vector3.new(0,20,0))
  266. elseif msg:lower():sub(1,5)==".spec" then
  267. spectate(msg:sub(7))
  268. elseif msg:lower():sub(1,4)==".clr" then
  269. clr()
  270. elseif msg:sub(1,2)~=".s" then
  271. if duck then chat(msg) end
  272. end
  273. end)
  274. respawn(Vector3.new(0,20,0))
  275. wait()
  276. noclip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement