Advertisement
VoidScriptPlayer

Untitled

May 18th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --void Script bbuilder fe script converter V2
  2.  
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7.  
  8. --[[ Thank you ]]--
  9. -------------------------------------------------------
  10. --[[
  11.  
  12. This script was created by WafflesAreVeryGood or Nobody#3907
  13.  
  14. --]]
  15. -------------------------------------------------------
  16. --[[ Reference ]]--
  17. --[[
  18. Burn Function
  19. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  20.  
  21. Freeze Function
  22. hurt(char.Head, 0, "Freeze", {char, 1})
  23.  
  24. Stun Function
  25. hurt(char.Head, 0, "Stun", {char, 0.2})
  26. --]]
  27. -------------------------------------------------------
  28. math.randomseed(tick())
  29. print("You are using a script created by WafflesAreVeryGood!")
  30. warn("--------Global Message--------")
  31. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  32. warn("------------------------------")
  33. --[[Changeable Variables]]--
  34. local settings = {}
  35. --ShowDamage settings
  36. settings.Damage = {
  37. Color = nil,
  38. StrokeColor = nil,
  39. Font = nil,
  40. }
  41. settings.ShowDamageEnabled = false
  42. settings.CustomAnim = true
  43. local soundlist = {
  44. HardHit1 = "rbxassetid://565207203",
  45. HardHit2 = "rbxassetid://541909913",
  46. HardHit3 = "rbxassetid://541909983",
  47. WeakHit1 = "rbxassetid://558642292",
  48. WeakHit2 = "rbxassetid://541907812",
  49. Slice1 = "rbxassetid://260429964",
  50. Slice2 = "rbxassetid://260430015",
  51. Explosion1 = "rbxassetid://138186576",
  52. Explosion2 = "rbxassetid://157878578",
  53. Woosh1 = "rbxassetid://541909867",
  54. Woosh2 = "rbxassetid://541909763",
  55. Freeze = "rbxassetid://268249319",
  56. Thaw = "rbxassetid://1578580965",
  57. Burn = "rbxassetid://298181829",
  58.  
  59. }
  60. local attack_data = {
  61. {
  62. Name = "Attack",
  63. Description = "Description",
  64. Key = "Key",
  65. },
  66.  
  67. }
  68.  
  69. --[[Important Variables]]--
  70. local plr = game:GetService('Players').LocalPlayer
  71. local char = plr.Character
  72. local mouse = plr:GetMouse()
  73. local input = game:GetService('UserInputService')
  74. ----
  75. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  76. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  77. local rs = torso["Right Shoulder"]
  78. local ls = torso["Left Shoulder"]
  79. local rh = torso["Right Hip"]
  80. local lh = torso["Left Hip"]
  81. local neck = torso.Neck
  82. local rj = rootpart["RootJoint"]
  83. local humanoid = char:FindFirstChildOfClass("Humanoid")
  84. ----
  85. local huge = Vector3.new(math.huge, math.huge, math.huge)
  86. local attacking = false
  87. local cananim = true
  88. local animpose = "Idle"
  89. local lastpose = animpose
  90. local movespeed = 0
  91. ----
  92. --[[ Anti-Decompile ]]--
  93. script.Parent = workspace.CurrentCamera
  94. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  95. script:Destroy()
  96. end)
  97. --[[ Moves Gui ]]--
  98.  
  99. local mgui = Instance.new("ScreenGui")
  100. mgui.Name = "MovesGui"
  101. local bg = Instance.new("Frame")
  102. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  103. bg.Position = UDim2.new(0,504,0,164)
  104. bg.Name = "Background"
  105. bg.Size = UDim2.new(-0.035,379,0,225)
  106. bg.Visible = false
  107. bg.Parent = mgui
  108. local container = Instance.new("ScrollingFrame")
  109. container.Name = "Container"
  110. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  111. container.BorderSizePixel = 0
  112. container.Visible = true
  113. container.Position = UDim2.new(0,16,0,46)
  114. container.Size = UDim2.new(0,132,0,162)
  115. container.CanvasSize = UDim2.new(0,0,0,10)
  116. container.ScrollBarThickness = 4
  117. container.Parent = bg
  118. local copy = Instance.new("TextButton")
  119. copy.Name = "Move"
  120. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  121. copy.BorderSizePixel = 0
  122. copy.Position = UDim2.new(0,4,0,4)
  123. copy.Size = UDim2.new(0,118,0,29)
  124. copy.Font = "SourceSansLight"
  125. copy.Text = "Move Name"
  126. copy.TextColor3 = Color3.new(197/255,0,0)
  127. copy.TextSize = 20
  128. copy.Visible = false
  129. copy.Parent = container
  130. local atkinfo = container:Clone()
  131. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  132. atkinfo.Name = "AtkInfo"
  133. atkinfo.Visible = true
  134. atkinfo.Position = UDim2.new(0,167,0,50)
  135. atkinfo.Size = UDim2.new(0,159,0,165)
  136. atkinfo.Parent = bg
  137. local movename = Instance.new("TextLabel")
  138. movename.Name = "MoveName"
  139. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  140. movename.BorderSizePixel = 0
  141. movename.Position = UDim2.new(0,4,0,4)
  142. movename.Size = UDim2.new(0,150,0,30)
  143. movename.Font = "SourceSansLight"
  144. movename.TextColor3 = Color3.new(197/255,0,0)
  145. movename.TextSize = 20
  146. movename.Text = "same"
  147. movename.Parent = atkinfo
  148. local movedesc = movename:Clone()
  149. movedesc.Position = UDim2.new(0,4,0,47)
  150. movedesc.Size = UDim2.new(0,150,0,133)
  151. movedesc.Text = "Move Description"
  152. movedesc.TextSize = 18
  153. movedesc.Name = "MoveDesc"
  154. movedesc.TextXAlignment = "Left"
  155. movedesc.TextYAlignment = "Top"
  156. movedesc.TextWrapped = true
  157. movedesc.Parent = atkinfo
  158. local title = movedesc:Clone()
  159. title.Name = "Title"
  160. title.Font = "SourceSansLight"
  161. title.Text = "Moves List"
  162. title.TextSize = 28
  163. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  164. title.Position = UDim2.new(0,0,0,0)
  165. title.Size = UDim2.new(1,0,0,30)
  166. title.TextXAlignment = "Center"
  167. title.TextYAlignment = "Center"
  168. title.Parent = bg
  169. local toggle = copy:Clone()
  170. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  171. toggle.Position = UDim2.new(0,0,0,288)
  172. toggle.Size = UDim2.new(0,70,0,20)
  173. toggle.Visible = true
  174. toggle.Font = "SourceSans"
  175. toggle.Text = "Toggle Moves"
  176. toggle.Name = "Toggle"
  177. toggle.TextSize = 14
  178. toggle.Parent = mgui
  179. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  180. mgui.Enabled = false
  181. toggle.MouseButton1Click:connect(function()
  182. bg.Visible = not bg.Visible
  183. end)
  184. local pos = copy.Position -UDim2.new(0,0,0,29)
  185. for _,data in pairs(attack_data) do
  186. local new = copy:Clone()
  187. pos = pos +UDim2.new(0,0,0,29)
  188. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  189. new.Position = pos
  190. new.Text = data.Name.."["..data.Key.."]"
  191. new.Visible = true
  192. spawn(function()
  193. swait()
  194. if not new.TextFits then
  195. new.TextScaled = true
  196. end
  197. end)
  198. new.Parent = container
  199. new.MouseButton1Click:connect(function()
  200. movename.Text = data.Name
  201. movedesc.Text = data.Description
  202. spawn(function()
  203. swait()
  204. if not movename.TextFits then
  205. movename.TextScaled = true
  206. else
  207. movename.TextScaled = false
  208. end
  209. if not movedesc.TextFits then
  210. movename.TextScaled = true
  211. else
  212. movename.TextScaled = false
  213. end
  214. end)
  215. end)
  216. end
  217. --[[ Functions ]]--
  218.  
  219. function addattack(keycode, func)
  220. if keycode ~= "MouseClick" then
  221. input.InputBegan:connect(function(inp)
  222. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  223. func()
  224. end
  225. end)
  226. else
  227. mouse.Button1Down:connect(function()
  228. func()
  229. end)
  230. end
  231. end
  232. function attackend(keycode, func)
  233. input.InputEnded:connect(function(inp)
  234. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  235. func()
  236. end
  237. end)
  238. end
  239. function swait(t)
  240. if t then
  241. for i = 0, t do
  242. game:GetService('RunService').Stepped:wait(0)
  243. end
  244. else
  245. game:GetService('RunService').Stepped:wait(0)
  246. end
  247. return true
  248. end
  249. function fade(obj, dest, grow)
  250. spawn(function()
  251. local oldcf = obj.CFrame
  252. for i = 0, 10 do
  253. if grow then
  254. obj.Size = obj.Size +Vector3.new(1,1,1)
  255. obj.CFrame = oldcf
  256. end
  257. obj.Transparency = obj.Transparency +0.1
  258. swait()
  259. end
  260. if dest then
  261. obj:Destroy()
  262. end
  263. end)
  264. end
  265. function replacejoint(name)
  266. local j = torso:FindFirstChild(name)
  267. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  268. if j then
  269. if true then
  270. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  271. local new = Instance.new("Weld")
  272. local c0 = j.C0
  273. local c1 = j.C1
  274. new.Part0 = j.Part0
  275. j.Part0 = nil
  276. new.Name = j.Name.." Replacement"
  277. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  278. new.Parent = j.Parent
  279. new.Part1 = j.Part1
  280. new.C0 = c0
  281. new.C1 = c1
  282. return new
  283. end
  284. end
  285. end
  286. function removejoint(name, fast)
  287. local j = torso:FindFirstChild(name.." Replacement")
  288. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  289. if j then
  290. local p0 = j.Part0
  291. if p0 ~= nil then
  292. local c0 = j.C0
  293. local c1 = j.C1
  294. j:Destroy()
  295. local new = p0:FindFirstChild(name)
  296. local ac0 = new.C0
  297. local ac1 = new.C1
  298. new.Part0 = p0
  299. new.C0 = c0
  300. new.C1 = c1
  301. spawn(function()
  302. if name ~= "RootJoint" then
  303. if not fast then
  304. for i = 0, 0.6, 0.1 do
  305. print(i)
  306. new.C0 = new.C0:Lerp(ac0, 0.5)
  307. new.C1 = new.C1:lerp(ac1, 0.5)
  308. swait()
  309. end
  310. else
  311. new.C0 = new.C0:Lerp(ac0, 1)
  312. new.C1 = new.C1:lerp(ac1, 1)
  313. end
  314. end
  315. end)
  316. end
  317. end
  318. end
  319. function fixalljoints(fast)
  320. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  321. removejoint(v, fast)
  322. end
  323. end
  324. function getnewjoints()
  325. local rs = replacejoint("Right Shoulder")
  326. local ls = replacejoint("Left Shoulder")
  327. local rh = replacejoint("Right Hip")
  328. local lh = replacejoint("Left Hip")
  329. local neck = replacejoint("Neck")
  330. local rj = replacejoint("RootJoint")
  331. return rs,ls,rh,lh,neck,rj
  332. end
  333. function knockback(hit, force)
  334. local bv = Instance.new("BodyVelocity")
  335. bv.MaxForce = huge
  336. bv.Velocity = force
  337. bv.Parent = hit
  338. game:GetService('Debris'):AddItem(bv, 0.15)
  339. end
  340. function soundeffect(id, volume, speed, parent, extra)
  341. extra = extra or {}
  342. local func = function()
  343. local s = LoadLibrary("RbxUtility").Create("Sound")()
  344. s.Name = "WSoundEffect"
  345. s.Volume = volume
  346. s.PlaybackSpeed = speed
  347. s.SoundId = id
  348. s.Looped = false
  349. if extra.Pitch then
  350. local ef = Instance.new("PitchShiftSoundEffect")
  351. ef.Octave = extra.Pitch or 1
  352. ef.Enabled = true
  353. ef.Priority = 0
  354. ef.Parent = s
  355. end
  356. s.Parent = parent
  357. if extra.Immune then
  358. Instance.new("StringValue", s).Name = "Immune"
  359. end
  360. s:Play()
  361. s.TimePosition = extra.Start or 0
  362. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  363. s:Destroy()
  364. return s
  365. end
  366. if extra.ForceWait then
  367. func()
  368. else
  369. return spawn(func)
  370. end
  371. end
  372. function getfunction(nm)
  373. if nm == "Burn" then
  374. return function(character, data)
  375. if character:FindFirstChild("Burn") then
  376. return
  377. end
  378. local val = Instance.new("StringValue")
  379. val.Name = "Burn"
  380. val.Parent = character
  381. for i = 1, data.Time*100 do
  382. if not character:FindFirstChild("Burn") then
  383. break
  384. end
  385. if i%data.Rate == 0 then
  386. local hum = character:FindFirstChildOfClass("Humanoid")
  387. if hum then
  388. hurt(torso, data.Damage)
  389. end
  390. soundeffect(soundlist.Burn, 1, 1, torso)
  391. spawn(function()
  392. for i = 1, 4 do
  393. spawn(function()
  394. local p = Instance.new("Part")
  395. p.Material = "Neon"
  396. p.CanCollide = false
  397. p.Anchored = true
  398. p.Size = Vector3.new(0.5,0.5,0.5)
  399. p.Name = "fireeffect"
  400. p.Color = data.Color or Color3.new(1,162/255,0)
  401. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  402. p.Parent = torso
  403. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  404. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  405. local opcf = p.CFrame
  406. local opsz = p.Size
  407. for i = 0, 1, 0.01 do
  408. p.Transparency = i/1
  409. local cf = p.CFrame
  410. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  411. p.CFrame = cf
  412. p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
  413. swait()
  414. end
  415. p:Destroy()
  416. swait(5)
  417. end)
  418. swait()
  419. end
  420. end)
  421. end
  422. swait()
  423. end
  424. val:Destroy()
  425. end
  426. end
  427. if nm == "Poison" then
  428. return function(character, data)
  429.  
  430. end
  431. end
  432. if nm == "Freeze" then
  433. return function(character, t)
  434. if not character:FindFirstChild("Frozen") then
  435. local val = Instance.new("StringValue")
  436. val.Name = "Frozen"
  437. val.Parent = character
  438. local unanchor = {}
  439. local freezeparts = {}
  440. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  441. for _,v in pairs(character:GetDescendants()) do
  442. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  443. if v.Transparency ~= 1 then
  444. if not v.Anchored then
  445. table.insert(unanchor, v)
  446. end
  447. v.Anchored = true
  448. local new = v:Clone()
  449. new:ClearAllChildren()
  450. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  451. if mesh then
  452. mesh = mesh:Clone()
  453. mesh.TextureId = ""
  454. if mesh.Scale ~= Vector3.new(1,1,1) then
  455. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  456. end
  457. mesh.Parent = new
  458. end
  459. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  460. new.CanCollide = false
  461. new.Anchored = true
  462. new.Name = "freezepart"
  463. new.Material = "Ice"
  464. new.BrickColor = BrickColor.new("Pastel light blue")
  465. new.TopSurface = "Smooth"
  466. new.BottomSurface = "Smooth"
  467. new.Transparency = 0
  468. new.CFrame = v.CFrame
  469. new.Parent = v
  470. table.insert(freezeparts, new)
  471. end
  472. end
  473. end
  474. swait(50*t)
  475. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  476. val:Destroy()
  477. for _,v in pairs(unanchor) do
  478. v.Anchored = false
  479. end
  480. for _,v in pairs(freezeparts) do
  481. v.Anchored = false
  482. v.CanCollide = true
  483. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  484. game:GetService('Debris'):AddItem(v, 5)
  485. end
  486. end
  487. end
  488. end
  489. if nm == "Stun" then
  490. return function(character, t)
  491. local humanoid = character:FindFirstChildOfClass("Humanoid")
  492. local val = Instance.new("StringValue")
  493. val.Name = "Stun"
  494. val.Parent = character
  495. if humanoid then
  496. humanoid.PlatformStand = true
  497. end
  498. for i = 1, t*100 do
  499. if humanoid then
  500. humanoid.PlatformStand = true
  501. end
  502. swait()
  503. end
  504. if humanoid then
  505. humanoid.PlatformStand = false
  506. end
  507. val:Destroy()
  508. end
  509. end
  510. if nm == "Paralyze" then
  511. return function(character, t)
  512.  
  513. end
  514. end
  515. return
  516. end
  517. function showdamage(cf, txtdata)
  518. --[[
  519. [Text Data]
  520. Font
  521. Text
  522. Color
  523. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  524. --]]
  525. local p = Instance.new("Part")
  526. p.Name = "DamagePart"
  527. p.CanCollide = false
  528. p.Anchored = true
  529. p.Transparency = 1
  530. p.Size = Vector3.new(0.1,0.1,0.1)
  531. p.CFrame = cf
  532. local gui = Instance.new("BillboardGui")
  533. gui.Name = "GUI"
  534. gui.Adornee = p
  535. gui.LightInfluence = 0
  536. gui.Size = UDim2.new(1.5,0,0.7,0)
  537. gui.StudsOffset = Vector3.new(0,0.5,0)
  538. local tl = Instance.new("TextLabel")
  539. tl.Name = "tl"
  540. tl.BackgroundTransparency = 1
  541. tl.Position = UDim2.new(0,0,0,0)
  542. tl.Size = UDim2.new(2,0,2,0)
  543. tl.Font = txtdata.Font or "SourceSans"
  544. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  545. tl.Text = txtdata.Text or ""
  546. tl.TextScaled = true
  547. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  548. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  549. tl.Rotation = math.random(-10,10)
  550. tl.Parent = gui
  551. gui.Parent = p
  552. local og = gui
  553. gui = og:Clone()
  554. gui.Parent = og.Parent
  555. tl = gui.tl
  556. og:Destroy()
  557. p.Parent = char
  558. spawn(function()
  559. for i = 1, 100 do
  560. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  561. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  562. if txtdata.StrokeColor then
  563. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  564. end
  565. swait()
  566. end
  567. p:Destroy()
  568. end)
  569. end
  570. function stabilizer(obj)
  571. local bp = Instance.new("BodyPosition")
  572. bp.MaxForce = huge
  573. bp.Position = obj.Position
  574. bp.Parent = obj
  575. end
  576. function setshape(obj, typ)
  577. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  578. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  579. m.TextureId = ""
  580. if typ == "Ring" then
  581. typ = "FileMesh"
  582. end
  583. m.MeshType = typ
  584. m.Parent = obj
  585. end
  586. function camshake(direction, intensity, duration)
  587. if direction:lower() == "inout" then
  588. workspace.CurrentCamera.FieldOfView = intensity
  589. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  590. elseif direction:lower() == "left" then
  591. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  592. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  593. elseif direction:lower() == "right" then
  594. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  595. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  596. elseif direction:lower() == "up" then
  597. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  598. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  599. elseif direction:lower() == "down" then
  600. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  601. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  602. end
  603. end
  604. function hurt(hit, dmg, effect, args)
  605. --pcall(function()
  606. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  607. if hum then
  608. if hum.Parent ~= char or true then
  609. if typeof(dmg) == "table" then
  610. dmg = math.random(dmg[1], dmg[2])
  611. end
  612. hum.Health = hum.Health - dmg
  613. if settings.ShowDamageEnabled then
  614. local dmgdata = {
  615. Color = settings.Damage.Color,
  616. StrokeColor = settings.Damage.StrokeColor,
  617. Font = settings.Damage.Font,
  618. Text = dmg,
  619. }
  620. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  621. end
  622. if effect then
  623. if typeof(effect) == "function" then
  624. local s,m = pcall(effect, hit.CFrame)
  625. if not s then
  626. warn("Error in function: "..m or "unknown")
  627. end
  628. end
  629. if typeof(effect) == "string" then
  630. local func = getfunction(effect)
  631. if func then
  632. local s,m
  633. if args then
  634. s,m = pcall(func, unpack(args))
  635. else
  636. s,m = pcall(func)
  637. end
  638. if not s then
  639. warn("Error in function: "..m or "unknown")
  640. end
  641. end
  642. end
  643. end
  644. return true
  645. end
  646. end
  647. --end)
  648. end
  649. local gui = Instance.new("ScreenGui")
  650. gui.Name = "Talk"
  651. gui.Enabled = false
  652. local tl = Instance.new("TextLabel")
  653. tl.BackgroundColor3 = Color3.new()
  654. tl.BackgroundTransparency = 0.8
  655. tl.Position = UDim2.new(0.115,0,0.747,0)
  656. tl.Size = UDim2.new(0,922,0,151)
  657. tl.Font = "SourceSansLight"
  658. tl.Text = ""
  659. tl.TextWrapped = true
  660. tl.TextColor3 = Color3.new(1,1,1)
  661. tl.TextXAlignment = "Left"
  662. tl.TextYAlignment = "Top"
  663. tl.TextSize = 19
  664. tl.BorderSizePixel = 0
  665. tl.Parent = gui
  666. gui.Parent = plr.PlayerGui
  667. local function talk(txt)
  668. gui.Enabled = true
  669. tl.Text = ""
  670. for i = 1, txt:len() do
  671. tl.Text = txt:sub(1,i)
  672. swait(3)
  673. end
  674. end
  675. --[[ uhhhhhhhhhhhhhhhh ]]--
  676. pcall(function()
  677. NS([[
  678. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter")
  679. store:UpdateAsync("y'all", function(old)
  680. old = old or {}
  681. if typeof(old) ~= "table" then
  682. old = {} --stop breaking my datastores
  683. end
  684. local ok = true
  685. for _,v in pairs(old) do
  686. if typeof(v) == "table" then
  687. if v.name == owner.Name or v.userid == owner.UserId then
  688. ok = false
  689. table.insert(v.uses, tick())
  690. end
  691. end
  692. end
  693. if ok then
  694. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  695. end
  696. return old
  697. end)
  698. script:Destroy()
  699. ]], workspace)
  700. end)
  701. --[[ Actual script :OOOOOOOOOO ]]--
  702.  
  703. if settings.CustomAnim then
  704. if char:FindFirstChild("Animate") then
  705. char.Animate:Destroy()
  706. end
  707. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  708. track:Stop()
  709. end
  710. humanoid.Running:connect(function(ws)
  711. movespeed = ws
  712. end)
  713. end
  714. local p = Instance.new("Part")
  715. p.Anchored = true
  716. p.Material = "Grass"
  717. p.BrickColor = BrickColor.new("Bright green")
  718. p.CanCollide = true
  719. p.Size = Vector3.new(1,7,7)
  720. p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90))
  721. local m = Instance.new("SpecialMesh")
  722. m.MeshType = "Cylinder"
  723. m.Parent = p
  724. p.Parent = char
  725. local s = Instance.new("Sound")
  726. s.Volume = 2
  727. s.Looped = true
  728. s.SoundId = "rbxassetid://745717581"
  729. s.Parent = char
  730. s:Play()
  731. local pl = Instance.new("PointLight")
  732. pl.Brightness = 0.2
  733. pl.Color = Color3.new(180/255,181/255,255/255)
  734. pl.Range = 16
  735. pl.Shadows = false
  736. pl.Parent = torso
  737. humanoid.WalkSpeed = 0
  738. humanoid.JumpPower = 0
  739. humanoid.CameraOffset = Vector3.new(0,-1,0)
  740. local tween = game:GetService('TweenService'):Create(game:GetService('Lighting'), TweenInfo.new(30, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {ClockTime = 0, Ambient = Color3.new(), OutdoorAmbient = Color3.new(), Brightness = 0})
  741. tween:Play()
  742. local tweendone,effectsallowed = false,false
  743. spawn(function()
  744. tween.Completed:wait()
  745. tweendone = true
  746. swait(60*60*2)
  747. talk("Hi, "..plr.Name..".")
  748. swait(60*7)
  749. talk("Sorry for not making my last script for SB something huge and epic.")
  750. swait(60*7)
  751. talk("But hopefully this is satisfactory.")
  752. swait(60*7)
  753. talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.")
  754. swait(60*10)
  755. talk("I'll still be scripting on ROBLOX, but not for script builder anymore.")
  756. swait(60*7)
  757. talk("My current project as of now is A Block in Time.")
  758. swait(60*7)
  759. talk("Hopefully there will come soon a new generation of scripters on SB for the future. It would allow for a new age of different types of scripts.")
  760. swait(60*7)
  761. talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.")
  762. swait(60*7)
  763. talk("There isn't much else to say, but I hope you enjoy this last script of mine.")
  764. swait(60*7)
  765. talk("Thank you.")
  766. swait(60*5)
  767. gui.Enabled = false
  768. end)
  769.  
  770. addattack("MouseClick", function()
  771. if not effectsallowed then
  772. return
  773. end
  774. mouse.TargetFilter = workspace.CurrentCamera
  775. local hit = mouse.Hit
  776. local tar = mouse.Target
  777. local surface = mouse.TargetSurface
  778. mouse.TargetFilter = nil
  779. local p = Instance.new("Part")
  780. soundeffect("rbxassetid://397689338", 2, 1, p)
  781. p.Anchored = true
  782. p.CanCollide = false
  783. p.Material = "Neon"
  784. p.BrickColor = BrickColor.new("Deep orange")
  785. p.Size = Vector3.new(0.1,0.1,0.1)
  786. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  787. setshape(p, "Sphere")
  788. p.CFrame = CFrame.new(hit.p, hit.p+face)
  789. p.Parent = char
  790. for i = 1, 60*5 do
  791. local cf = p.CFrame
  792. p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01)
  793. p.CFrame = cf
  794. p.Transparency = i/(60*5)
  795. swait()
  796. end
  797. p:Destroy()
  798. end)
  799. addattack(Enum.KeyCode.V, function()
  800. effectsallowed = not effectsallowed
  801. end)
  802.  
  803.  
  804. spawn(function()
  805. local num = 0
  806. repeat swait()
  807. local hit = mouse.Hit
  808. local tar = mouse.Target
  809. local surface = mouse.TargetSurface
  810. mouse.TargetFilter = nil
  811. if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then
  812. spawn(function()
  813. local p = Instance.new("Part")
  814. p.Anchored = true
  815. p.CanCollide = false
  816. p.Material = "Neon"
  817. p.Size = Vector3.new(0.1,0.1,0.1)
  818. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  819. p.CFrame = CFrame.new(hit.p, hit.p + face)
  820. p.Parent = char.Torso
  821. setshape(p, "Sphere")
  822. for i = 1, 20 do
  823. local cf = p.CFrame
  824. p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3)
  825. p.CFrame = cf
  826. p.Transparency = i/20
  827. swait()
  828. end
  829. p:Destroy()
  830. end)
  831. end
  832. num = num + 1
  833. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  834. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  835. local tvel = rootpart.Velocity
  836. if not air then
  837. spawn(function()
  838. if num%5 == 0 and tweendone and effectsallowed then
  839. local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100))
  840. local drop = Instance.new("Part")
  841. drop.Anchored = true
  842. drop.CanCollide = false
  843. drop.Size = Vector3.new(0.5,0.5,0.5)
  844. drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset
  845. drop.Material = "Neon"
  846. drop.Parent = workspace
  847. setshape(drop, "Sphere")
  848. local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset
  849. local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset
  850. for i = 1, 60*1 do
  851. local cf = drop.CFrame
  852. drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2)
  853. drop.CFrame = cf:Lerp(endcf, 0.1)
  854. swait()
  855. end
  856. --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char)
  857. drop:Destroy()
  858. local p = Instance.new("Part")
  859. p.Anchored = true
  860. p.CanCollide = false
  861. p.Material = "Neon"
  862. p.Size = Vector3.new(0.1,0.1,0.1)
  863. p.CFrame = cf2
  864. p.Parent = workspace
  865. setshape(p, "Sphere")
  866. for i = 1, 60*5 do
  867. local cf = p.CFrame
  868. p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01)
  869. p.CFrame = cf
  870. p.Transparency = i/(60*5)
  871. swait()
  872. end
  873. p:Destroy()
  874. end
  875. end)
  876. end
  877. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  878. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  879. local tvel = rootpart.Velocity
  880. if air and tvel.Y > 0 then
  881. animpose = "Jump"
  882. end
  883. if air and tvel.Y < 0 then
  884. animpose = "Fall"
  885. end
  886. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  887. animpose = "Walking"
  888. end
  889. if not air and animpose == "Walking" and movespeed > 16 then
  890. animpose = "Walking"--or Running
  891. end
  892. if not air and movespeed == 0 then
  893. animpose = "Idle"
  894. end
  895. until not settings.CustomAnim
  896. end)
  897. local change = 1
  898. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  899. while swait() and settings.CustomAnim do
  900. local num = tick()*change
  901. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * -3 + -10), math.rad(cos(num * 1 + 0) * 0 + 190)), 0.35)
  902.  
  903. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + -2.4010000228882, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 85), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  904.  
  905. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  906.  
  907. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + -10), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 20)), 0.35)
  908.  
  909. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  910.  
  911. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + -200)), 0.35)
  912. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement