Advertisement
Idirina

John Doe Script Clean

Nov 19th, 2017
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.45 KB | None | 0 0
  1. ------------
  2. --Safety Dough--
  3. ------------
  4. -----by-----
  5. --CKbackup--
  6. ------------
  7.  
  8. --Player Stuff--
  9. player = game:GetService("Players").LocalPlayer
  10. chara = player.Character
  11.  
  12. ch = chara:GetChildren()
  13. for i = 1, #ch do
  14. if ch[i].Name == "Torso" then
  15. ch[i].roblox.Transparency = 1
  16. elseif ch[i].Name == "Head" then
  17. ch[i].face.Transparency = 1
  18. ch[i].Transparency = 1
  19. elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then
  20. ch[i]:Destroy()
  21. end
  22. end
  23.  
  24. chara["Left Arm"].BrickColor = BrickColor.new("Cool yellow")
  25. chara["Right Arm"].BrickColor = BrickColor.new("Cool yellow")
  26. chara["Left Leg"].BrickColor = BrickColor.new("Medium blue")
  27. chara["Right Leg"].BrickColor = BrickColor.new("Medium blue")
  28. chara.Torso.BrickColor = BrickColor.new("Bright yellow")
  29.  
  30.  
  31. --Outfit--
  32. New = function(Object, Parent, Name, Data)
  33. local Object = Instance.new(Object)
  34. for Index, Value in pairs(Data or {}) do
  35. Object[Index] = Value
  36. end
  37. Object.Parent = Parent
  38. Object.Name = Name
  39. return Object
  40. end
  41.  
  42. function ScatterEff(part)
  43. local eff1 = Instance.new("Folder",part)
  44. end
  45.  
  46. function BurningEff(part)
  47. local eff1 = Instance.new("Folder",part)
  48. end
  49.  
  50. FakeHead = New("Model",chara,"FakeHead",{})
  51. MainPart = New("Part",FakeHead,"MainPart",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1, 1),CFrame = CFrame.new(2.29537678, 7.81603718, 0.746068954, 0.00980896503, 0.00110200304, 0.999957919, -0.000536994543, 1.00000548, -0.00109680078, -0.99994874, -0.0005262224, 0.00980964955),CanCollide = false,TopSurface = Enum.SurfaceType.Smooth,})
  52. Mesh = New("SpecialMesh",MainPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  53. face = New("Decal",MainPart,"face",{Texture = "rbxasset://textures/face.png",})
  54. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, 0.00980896503, -0.000536994543, -0.99994874, 0.00110200304, 1.00000548, -0.0005262224, 0.999957919, -0.00109680078, 0.00980964955),C1 = CFrame.new(5.96046448e-008, -8.58306885e-006, 0, 0.00980896503, -0.000536994543, -0.99994874, 0.00110200304, 1.00000548, -0.0005262224, 0.999957919, -0.00109680078, 0.00980964955),})
  55. FakeHead.MainPart.BrickColor = BrickColor.new("Cool yellow")
  56. EyeFire = New("Part",FakeHead,"EyeFire",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(1.69668579, 8.11665249, 0.640022159, -0.00107900088, 0.999958038, -0.00980941113, -1.0000056, -0.00107390946, 0.000525554642, 0.000515007298, 0.00981007144, 0.999948859),CanCollide = false,Color = Color3.new(1, 0, 0),})
  57. Mesh = New("CylinderMesh",EyeFire,"Mesh",{Offset = Vector3.new(0.0500000007, 0, -0.0399999991),Scale = Vector3.new(1, 0.150000006, 1),})
  58. Weld = New("ManualWeld",EyeFire,"Weld",{Part0 = EyeFire,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -0.0010790003, -0.999999344, 0.000515000196, 0.999951363, -0.0010738963, 0.00981000345, -0.00980944186, 0.000525560055, 0.99995178),C1 = CFrame.new(0.100008011, 0.300009251, -0.600027919, 0.00980899762, -0.000536999898, -0.99995178, 0.00110200245, 0.999999344, -0.000526215415, 0.999951363, -0.00109678751, 0.00980958249),})
  59.  
  60. local eff1 = Instance.new("ParticleEmitter",EyeFire)
  61. eff1.Size = NumberSequence.new(.1)
  62. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  63. eff1.LightEmission = 1
  64. eff1.Lifetime = NumberRange.new(.5)
  65. eff1.Speed = NumberRange.new(1)
  66. eff1.EmissionDirection = "Front"
  67. eff1.Rate = 100
  68. eff1.Texture = "rbxassetid://347504241"
  69. eff1.Acceleration = Vector3.new(0,10,0)
  70. eff1.Color = ColorSequence.new(Color3.new(1,0,0))
  71. local eff2 = Instance.new("ParticleEmitter",EyeFire)
  72. eff2.Size = NumberSequence.new(.1)
  73. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  74. eff2.LightEmission = 1
  75. eff2.Lifetime = NumberRange.new(.5)
  76. eff2.Speed = NumberRange.new(1)
  77. eff2.EmissionDirection = "Front"
  78. eff2.Rate = 100
  79. eff2.Texture = "rbxassetid://347504259"
  80. eff2.Acceleration = Vector3.new(0,10,0)
  81. eff2.Color = ColorSequence.new(Color3.new(1,0,0))
  82. local eff3 = Instance.new("ParticleEmitter",EyeFire)
  83. eff3.Size = NumberSequence.new(.1)
  84. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  85. eff3.LightEmission = 1
  86. eff3.Lifetime = NumberRange.new(.5)
  87. eff3.Speed = NumberRange.new(1)
  88. eff3.EmissionDirection = "Front"
  89. eff3.Rate = 100
  90. eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
  91. eff3.Acceleration = Vector3.new(0,10,0)
  92. eff3.Color = ColorSequence.new(Color3.new(1,0,0))
  93.  
  94. --Sounds--
  95. slashsnd = New("Sound",chara.Torso,"Slash",{SoundId = "rbxassetid://28144425",PlaybackSpeed = .7,Volume = 5})
  96. hitsnd = New("Sound",chara.Torso,"Hit",{SoundId = "rbxassetid://429400881",PlaybackSpeed = .7,Volume = 5})
  97. telesnd = New("Sound",chara.Torso,"Tele",{SoundId = "rbxassetid://2767090",PlaybackSpeed = .7,Volume = 5})
  98. burnsnd = New("Sound",chara.Torso,"Burn",{SoundId = "rbxassetid://32791565",PlaybackSpeed = .7,Volume = 5})
  99. music1 = New("Sound",chara.Torso,"Music1",{SoundId = "rbxassetid://151038517",PlaybackSpeed = .5,Volume = 10,Looped = true})
  100. music2 = New("Sound",chara.Torso,"Music2",{SoundId = "rbxassetid://11984351",PlaybackSpeed = .2,Volume = 5,Looped = true})
  101. deathmus = New("Sound",chara.Torso,"DeathMus",{SoundId = "rbxassetid://19094700",PlaybackSpeed = .5,Volume = 5,Looped = true})
  102. deathex = New("Sound",chara.Torso,"DeathEx",{SoundId = "rbxassetid://11984351",PlaybackSpeed = 1,Volume = 5})
  103. music1:Play()
  104. music2:Play()
  105.  
  106. --Animations--
  107. swinganim = chara.Humanoid:LoadAnimation(New("Animation",chara,"Swing",{AnimationId = "rbxassetid://186934658"}))
  108.  
  109. --Name Tag--
  110. local naeeym = Instance.new("BillboardGui",chara)
  111. naeeym.Size = UDim2.new(0,100,0,40)
  112. naeeym.StudsOffset = Vector3.new(0,2,0)
  113. naeeym.Adornee = chara.Head
  114. local tecks = Instance.new("TextLabel",naeeym)
  115. tecks.BackgroundTransparency = 1
  116. tecks.BorderSizePixel = 0
  117. tecks.Text = "Safety Dough MADE BY CKbackup"
  118. tecks.Font = "Fantasy"
  119. tecks.FontSize = "Size24"
  120. tecks.TextStrokeTransparency = 0
  121. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  122. tecks.TextColor3 = Color3.new(0,0,0)
  123. tecks.Size = UDim2.new(1,0,0.5,0)
  124.  
  125. --Soul Steal--
  126. function SoulSteal(pos)
  127. local soulst = coroutine.wrap(function()
  128. local soul = Instance.new("Part",chara)
  129. soul.Size = Vector3.new(0,0,0)
  130. soul.CanCollide = false
  131. soul.Anchored = false
  132. soul.Position = pos
  133. soul.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  134. soul.Transparency = 1
  135. local ptc = Instance.new("ParticleEmitter",soul)
  136. ptc.Texture = "http://www.roblox.com/asset/?id=413366101"
  137. ptc.Size = NumberSequence.new(.5)
  138. ptc.LockedToPart = true
  139. ptc.Speed = NumberRange.new(0)
  140. ptc.Lifetime = NumberRange.new(9999)
  141. local bodpos = Instance.new("BodyPosition",soul)
  142. bodpos.Position = pos
  143. wait(2)
  144. soul.Touched:connect(function(hit)
  145. if hit.Parent == chara then
  146. soul:Destroy()
  147. end
  148. end)
  149. while soul do
  150. wait(.1)
  151. bodpos.Position = chara.Torso.Position
  152. end
  153. end)
  154. soulst()
  155. end
  156.  
  157. --Death of a Mortal--
  158. function KillMortal(hitdude)
  159. local torsy = nil
  160. if hitdude:FindFirstChild("Torso")~=nil then
  161. torsy = hitdude.Torso
  162. elseif hitdude:FindFirstChild("UpperTorso")~=nil then
  163. torsy = hitdude.UpperTorso
  164. end
  165. local val = Instance.new("ObjectValue",hitdude)
  166. val.Name = "HasBeenHit"
  167. hitdude:BreakJoints()
  168. hitdude.Humanoid:Destroy()
  169. SoulSteal(torsy.Position)
  170. local chi = hitdude:GetChildren()
  171. for i = 1, #chi do
  172. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  173. local bodpos = Instance.new("BodyPosition",chi[i])
  174. bodpos.Position = chi[i].Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  175. ScatterEff(chi[i])
  176. chi[i].BrickColor = BrickColor.new("Really black")
  177. end
  178. end
  179. for i = 1, 4 do
  180. for i = 1, #chi do
  181. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  182. chi[i].Transparency = chi[i].Transparency + .25
  183. wait(.01)
  184. end
  185. end
  186. end
  187. for i = 1, #chi do
  188. if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
  189. chi[i]:Destroy()
  190. end
  191. end
  192. end
  193.  
  194. --Arm Touch--
  195. bladeactive = false
  196. chara["Right Arm"].Touched:connect(function(hit)
  197. if bladeactive == true then
  198. if hit.Parent:FindFirstChild("Humanoid")~= nil and hit.Parent:FindFirstChild("HasBeenHit")== nil and hit.Parent ~= chara then
  199. hitsnd:Play()
  200. KillMortal(hit.Parent)
  201. end
  202. end
  203. end)
  204.  
  205. --Teleport--
  206. function Teleport(pos)
  207. telesnd:Play()
  208. local ch = chara:GetChildren()
  209. for i = 1, #ch do
  210. if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
  211. local trace = Instance.new("Part",game.Workspace)
  212. trace.Size = ch[i].Size
  213. trace.Material = "Neon"
  214. trace.BrickColor = BrickColor.new("Really black")
  215. trace.Transparency = .3
  216. trace.CanCollide = false
  217. trace.Anchored = true
  218. trace.CFrame = ch[i].CFrame
  219. if ch[i].Name == "Head" then
  220. mehs = Instance.new("CylinderMesh",trace)
  221. mehs.Scale = Vector3.new(1.25,1.25,1.25)
  222. end
  223. tracedisappear = coroutine.wrap(function()
  224. wait(1)
  225. for i = 1, 7 do
  226. wait(.1)
  227. trace.Transparency = trace.Transparency + .1
  228. end
  229. trace:Destroy()
  230. end)
  231. tracedisappear()
  232. end
  233. end
  234. chara.Torso.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  235. end
  236.  
  237. --Grab--
  238. function Grab(mouse)
  239. local hit = mouse.Target
  240. if hit ~= nil then
  241. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  242. local torsy = nil
  243. if hit.Parent:FindFirstChild("Torso")~=nil then
  244. torsy = hit.Parent.Torso
  245. elseif hit.Parent:FindFirstChild("UpperTorso")~=nil then
  246. torsy = hit.Parent.UpperTorso
  247. end
  248. local bodpos = Instance.new("BodyPosition",torsy)
  249. bodpos.Position = torsy.Position
  250. wait(1)
  251. burnsnd:Play()
  252. hit.Parent.Humanoid.MaxHealth = 1
  253. bodpos.Position = bodpos.Position + Vector3.new(0,55,0)
  254. for i = 1, 10 do
  255. wait(.1)
  256. BurningEff(torsy)
  257. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000
  258. hit.CFrame = hit.CFrame * CFrame.FromEulerAnglesXYZ(0.5,0.5,0.5)
  259. end
  260. KillMortal(hit.Parent)
  261. end
  262. else end
  263. end
  264.  
  265. --Button1Down--
  266. dell = false
  267. function onButton1Down()
  268. if dell == false then
  269. dell = true
  270. swinganim:Play()
  271. bladeactive = true
  272. slashsnd:Play()
  273. wait(.3)
  274. bladeactive = false
  275. dell = false
  276. swinganim:Stop()
  277. end
  278. end
  279.  
  280. --KeyDowns--
  281. function onKeyDown(key)
  282. if key == "z" then
  283. Teleport(Mouse.Hit.p + Vector3.new(0,2,0))
  284. elseif key == "x" then
  285. Grab(Mouse)
  286. end
  287. end
  288.  
  289. --Mouse Functions--
  290. Mouse = player:GetMouse()
  291. if Mouse then
  292. Mouse.Button1Down:connect(onButton1Down)
  293. Mouse.KeyDown:connect(onKeyDown)
  294. end
  295.  
  296. --Death--
  297. chara.Humanoid.Died:connect(function()
  298. local pat = Instance.new("Part",game.Workspace)
  299. pat.Transparency = 1
  300. pat.Anchored = true
  301. pat.CFrame = chara.Torso.CFrame
  302. naeeym.Parent = pat
  303. naeeym.Adornee = pat
  304. tecks.Text = "OOF"
  305. tecks.FontSize = "Size48"
  306. tecks.TextColor3 = Color3.new(1,0,0)
  307. music1:Stop()
  308. music2:Stop()
  309. deathmus.Parent = game.Workspace
  310. deathex.Parent = game.Workspace
  311. deathmus:Play()
  312. deathex:Play()
  313. end)
  314.  
  315. --Loop Function--
  316. while true do
  317. wait(.01)
  318. chance = math.random(0,100)
  319. if chance < 10 then
  320. sel = math.random(1,3)
  321. if sel == 1 then
  322. tecks.Text = "Safari Explorer"
  323. elseif sel == 2 then
  324. tecks.Text = "Safe Doe"
  325. elseif sel == 3 then
  326. tecks.Text = "Advertiser Friendly"
  327. end
  328. else tecks.Text = "Safety Dough"
  329. end
  330. if chara.Humanoid.Health > 0 then
  331. chara.Humanoid.MaxHealth = math.huge
  332. chara.Humanoid.Health = math.huge
  333. chara["Left Arm"].BrickColor = BrickColor.new("Cool yellow")
  334. chara["Right Arm"].BrickColor = BrickColor.new("Cool yellow")
  335. chara["Left Leg"].BrickColor = BrickColor.new("Medium blue")
  336. chara["Right Leg"].BrickColor = BrickColor.new("Medium blue")
  337. chara.Torso.BrickColor = BrickColor.new("Bright yellow")
  338. chara["Left Arm"].Anchored = false
  339. chara["Right Arm"].Anchored = false
  340. chara["Left Leg"].Anchored = false
  341. chara["Right Leg"].Anchored = false
  342. chara.Torso.Anchored = false
  343. ch = chara:GetChildren()
  344. for i = 1, #ch do
  345. if ch[i].ClassName == "Accessory" or ch[i].ClassName == "Hat" then
  346. ch[i]:Destroy()
  347. end
  348. end
  349. tools = player.Backpack:GetChildren()
  350. for i = 1, #tools do
  351. if tools[i].ClassName == "HopperBin" then
  352. tools[i]:Destroy()
  353. end
  354. end
  355. tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  356. local jtrace = Instance.new("Part",game.Workspace)
  357. jtrace.Name = "JDTrace"
  358. jtrace.Size = Vector3.new(10,0,10)
  359. jtrace.Position = chara.Torso.Position
  360. jtrace.CFrame = chara.Torso.CFrame - Vector3.new(0,3,0)
  361. jtrace.Anchored = true
  362. jtrace.CanCollide = false
  363. jtrace.BrickColor = BrickColor.new("Really black")
  364. jtrace.Material = "Granite"
  365. BurningEff(jtrace)
  366. game.Debris:AddItem(jtrace,1)
  367. end
  368. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement