Advertisement
Guest User

FE if it didnt work dont use it thanks

a guest
Feb 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.44 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.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,Connect=function(self,f)self.Function=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 and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --[[ Bully ]]--
  88.  
  89. -------------------------------------------------------
  90. --[[
  91.  
  92. This script was created by WafflesAreVeryGood.
  93. ATTACKS
  94. _______
  95.  
  96.  
  97. --]]
  98. -------------------------------------------------------
  99. --[[ Reference ]]--
  100. --[[
  101. Burn Function
  102. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  103.  
  104. Freeze Function
  105. hurt(char.Head, 0, "Freeze", {char, 1})
  106.  
  107. Stun Function
  108. hurt(char.Head, 0, "Stun", {char, 0.2})
  109. --]]
  110. -------------------------------------------------------
  111. math.randomseed(tick())
  112. print("You are using a script Edited by Goldenfreddynaggi! btw if you tell me to share it your screwed so this is only for my friends")
  113. warn("--------Global Message--------")
  114. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  115. warn("------------------------------")
  116. --[[Changeable Variables]]--
  117. local settings = {}
  118. --ShowDamage settings
  119. settings.Damage = {
  120. Color = nil,
  121. StrokeColor = nil,
  122. Font = nil,
  123. }
  124. settings.AttackMenu = false
  125. settings.ShowDamageEnabled = false
  126. settings.CustomAnim = false
  127. local soundlist = {
  128. HardHit1 = "rbxassetid://565207203",
  129. HardHit2 = "rbxassetid://541909913",
  130. HardHit3 = "rbxassetid://541909983",
  131. WeakHit1 = "rbxassetid://558642292",
  132. WeakHit2 = "rbxassetid://541907812",
  133. Slice1 = "rbxassetid://260429964",
  134. Slice2 = "rbxassetid://260430015",
  135. Explosion1 = "rbxassetid://138186576",
  136. Explosion2 = "rbxassetid://157878578",
  137. Woosh1 = "rbxassetid://541909867",
  138. Woosh2 = "rbxassetid://541909763",
  139. Freeze = "rbxassetid://268249319",
  140. Thaw = "rbxassetid://1578580965",
  141. Burn = "rbxassetid://298181829",
  142. One = "rbxassetid://1846615963",
  143. Two = "rbxassetid://1846619160",
  144. Three = "rbxassetid://1846620849",
  145. Four = "rbxassetid://1846859927",
  146. Five = "rbxassetid://1846870244",
  147. ReadyGo = "rbxassetid://1846603855",
  148. Hehehe = "rbxassetid://1846846911",
  149. OnceYou = "rbxassetid://1846594055",
  150. Wow = "rbxassetid://1847115545",
  151. Oops = "rbxassetid://1846613015",
  152.  
  153. }
  154. local attack_data = {
  155. {
  156. Name = "Attack",
  157. Description = "Description",
  158. Key = "Key",
  159. },
  160.  
  161. }
  162.  
  163. --[[Important Variables]]--
  164. local plr = owner
  165. local char = plr.Character
  166. local input = game:GetService('UserInputService')
  167. ----
  168. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  169. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  170. local rs = torso["Right Shoulder"]
  171. local ls = torso["Left Shoulder"]
  172. local rh = torso["Right Hip"]
  173. local lh = torso["Left Hip"]
  174. local neck = torso.Neck
  175. local rj = rootpart["RootJoint"]
  176. local humanoid = char:FindFirstChildOfClass("Humanoid")
  177. ----
  178. local huge = Vector3.new(math.huge, math.huge, math.huge)
  179. local attacking = false
  180. local cananim = true
  181. local animpose = "Idle"
  182. local lastpose = animpose
  183. local movespeed = 0
  184. ----
  185. --[[ Anti-Decompile ]]--
  186. script.Parent = workspace.CurrentCamera
  187. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  188. script:Destroy()
  189. end)
  190. --[[ Moves Gui ]]--
  191.  
  192. local mgui = Instance.new("ScreenGui")
  193. mgui.Name = "MovesGui"
  194. local bg = Instance.new("Frame")
  195. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  196. bg.Position = UDim2.new(0,504,0,164)
  197. bg.Name = "Background"
  198. bg.Size = UDim2.new(-0.035,379,0,225)
  199. bg.Visible = false
  200. bg.Parent = mgui
  201. local container = Instance.new("ScrollingFrame")
  202. container.Name = "Container"
  203. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  204. container.BorderSizePixel = 0
  205. container.Visible = true
  206. container.Position = UDim2.new(0,16,0,46)
  207. container.Size = UDim2.new(0,132,0,162)
  208. container.CanvasSize = UDim2.new(0,0,0,10)
  209. container.ScrollBarThickness = 4
  210. container.Parent = bg
  211. local copy = Instance.new("TextButton")
  212. copy.Name = "Move"
  213. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  214. copy.BorderSizePixel = 0
  215. copy.Position = UDim2.new(0,4,0,4)
  216. copy.Size = UDim2.new(0,118,0,29)
  217. copy.Font = "SourceSansLight"
  218. copy.Text = "Move Name"
  219. copy.TextColor3 = Color3.new(197/255,0,0)
  220. copy.TextSize = 20
  221. copy.Visible = false
  222. copy.Parent = container
  223. local atkinfo = container:Clone()
  224. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  225. atkinfo.Name = "AtkInfo"
  226. atkinfo.Visible = true
  227. atkinfo.Position = UDim2.new(0,167,0,50)
  228. atkinfo.Size = UDim2.new(0,159,0,165)
  229. atkinfo.Parent = bg
  230. local movename = Instance.new("TextLabel")
  231. movename.Name = "MoveName"
  232. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  233. movename.BorderSizePixel = 0
  234. movename.Position = UDim2.new(0,4,0,4)
  235. movename.Size = UDim2.new(0,150,0,30)
  236. movename.Font = "SourceSansLight"
  237. movename.TextColor3 = Color3.new(197/255,0,0)
  238. movename.TextSize = 20
  239. movename.Text = "same"
  240. movename.Parent = atkinfo
  241. local movedesc = movename:Clone()
  242. movedesc.Position = UDim2.new(0,4,0,47)
  243. movedesc.Size = UDim2.new(0,150,0,133)
  244. movedesc.Text = "Move Description"
  245. movedesc.TextSize = 18
  246. movedesc.Name = "MoveDesc"
  247. movedesc.TextXAlignment = "Left"
  248. movedesc.TextYAlignment = "Top"
  249. movedesc.TextWrapped = true
  250. movedesc.Parent = atkinfo
  251. local title = movedesc:Clone()
  252. title.Name = "Title"
  253. title.Font = "SourceSansLight"
  254. title.Text = "Moves List"
  255. title.TextSize = 28
  256. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  257. title.Position = UDim2.new(0,0,0,0)
  258. title.Size = UDim2.new(1,0,0,30)
  259. title.TextXAlignment = "Center"
  260. title.TextYAlignment = "Center"
  261. title.Parent = bg
  262. local toggle = copy:Clone()
  263. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  264. toggle.Position = UDim2.new(0,0,0,288)
  265. toggle.Size = UDim2.new(0,70,0,20)
  266. toggle.Visible = true
  267. toggle.Font = "SourceSans"
  268. toggle.Text = "Toggle Moves"
  269. toggle.Name = "Toggle"
  270. toggle.TextSize = 14
  271. toggle.Parent = mgui
  272. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  273. if settings.AttackMenu then
  274. mgui.Enabled = false
  275. end
  276. toggle.MouseButton1Click:connect(function()
  277. bg.Visible = not bg.Visible
  278. end)
  279. local pos = copy.Position -UDim2.new(0,0,0,29)
  280. for _,data in pairs(attack_data) do
  281. local new = copy:Clone()
  282. pos = pos +UDim2.new(0,0,0,29)
  283. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  284. new.Position = pos
  285. new.Text = data.Name.."["..data.Key.."]"
  286. new.Visible = true
  287. spawn(function()
  288. swait()
  289. if not new.TextFits then
  290. new.TextScaled = true
  291. end
  292. end)
  293. new.Parent = container
  294. new.MouseButton1Click:connect(function()
  295. movename.Text = data.Name
  296. movedesc.Text = data.Description
  297. spawn(function()
  298. swait()
  299. if not movename.TextFits then
  300. movename.TextScaled = true
  301. else
  302. movename.TextScaled = false
  303. end
  304. if not movedesc.TextFits then
  305. movename.TextScaled = true
  306. else
  307. movename.TextScaled = false
  308. end
  309. end)
  310. end)
  311. end
  312. --[[ Functions ]]--
  313.  
  314. function addattack(keycode, func)
  315. if keycode ~= "MouseClick" then
  316. input.InputBegan:connect(function(inp)
  317. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  318. func()
  319. end
  320. end)
  321. else
  322. mouse.Button1Down:connect(function()
  323. func()
  324. end)
  325. end
  326. end
  327. function attackend(keycode, func)
  328. input.InputEnded:connect(function(inp)
  329. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  330. func()
  331. end
  332. end)
  333. end
  334. function swait(t)
  335. if t then
  336. for i = 0, t do
  337. game:GetService('RunService').Stepped:wait(0)
  338. end
  339. else
  340. game:GetService('RunService').Stepped:wait(0)
  341. end
  342. return true
  343. end
  344. function fade(obj, dest, grow)
  345. spawn(function()
  346. local oldcf = obj.CFrame
  347. for i = 0, 10 do
  348. if grow then
  349. obj.Size = obj.Size +Vector3.new(1,1,1)
  350. obj.CFrame = oldcf
  351. end
  352. obj.Transparency = obj.Transparency +0.1
  353. swait()
  354. end
  355. if dest then
  356. obj:Destroy()
  357. end
  358. end)
  359. end
  360. function replacejoint(name)
  361. local j = torso:FindFirstChild(name)
  362. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  363. if j then
  364. if true then
  365. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  366. local new = Instance.new("Weld")
  367. local c0 = j.C0
  368. local c1 = j.C1
  369. new.Part0 = j.Part0
  370. j.Part0 = nil
  371. new.Name = j.Name.." Replacement"
  372. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  373. new.Parent = j.Parent
  374. new.Part1 = j.Part1
  375. new.C0 = c0
  376. new.C1 = c1
  377. return new
  378. end
  379. end
  380. end
  381. function removejoint(name, fast)
  382. local j = torso:FindFirstChild(name.." Replacement")
  383. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  384. if j then
  385. local p0 = j.Part0
  386. if p0 ~= nil then
  387. local c0 = j.C0
  388. local c1 = j.C1
  389. j:Destroy()
  390. local new = p0:FindFirstChild(name)
  391. local ac0 = new.C0
  392. local ac1 = new.C1
  393. new.Part0 = p0
  394. new.C0 = c0
  395. new.C1 = c1
  396. spawn(function()
  397. if name ~= "RootJoint" then
  398. if not fast then
  399. for i = 0, 0.6, 0.1 do
  400. print(i)
  401. new.C0 = new.C0:Lerp(ac0, 0.5)
  402. new.C1 = new.C1:lerp(ac1, 0.5)
  403. swait()
  404. end
  405. else
  406. new.C0 = new.C0:Lerp(ac0, 1)
  407. new.C1 = new.C1:lerp(ac1, 1)
  408. end
  409. end
  410. end)
  411. end
  412. end
  413. end
  414. function fixalljoints(fast)
  415. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  416. removejoint(v, fast)
  417. end
  418. end
  419. function getnewjoints()
  420. local rs = replacejoint("Right Shoulder")
  421. local ls = replacejoint("Left Shoulder")
  422. local rh = replacejoint("Right Hip")
  423. local lh = replacejoint("Left Hip")
  424. local neck = replacejoint("Neck")
  425. local rj = replacejoint("RootJoint")
  426. return rs,ls,rh,lh,neck,rj
  427. end
  428. function knockback(hit, force)
  429. local bv = Instance.new("BodyVelocity")
  430. bv.MaxForce = huge
  431. bv.Velocity = force
  432. bv.Parent = hit
  433. game:GetService('Debris'):AddItem(bv, 0.15)
  434. end
  435. function soundeffect(id, volume, speed, parent, extra)
  436. extra = extra or {}
  437. local func = function()
  438. local s = LoadLibrary("RbxUtility").Create("Sound")()
  439. s.Name = "WSoundEffect"
  440. s.Volume = volume
  441. s.PlaybackSpeed = speed
  442. s.SoundId = id
  443. s.Looped = false
  444. if extra.Pitch then
  445. local ef = Instance.new("PitchShiftSoundEffect")
  446. ef.Octave = extra.Pitch or 1
  447. ef.Enabled = true
  448. ef.Priority = 0
  449. ef.Parent = s
  450. end
  451. s.Parent = parent
  452. s:Play()
  453. s.TimePosition = extra.Start or 0
  454. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  455. s:Destroy()
  456. return s
  457. end
  458. if extra.ForceWait then
  459. func()
  460. else
  461. return spawn(func)
  462. end
  463. end
  464. function getfunction(nm)
  465. if nm == "Burn" then
  466. return function(character, data)
  467. if character:FindFirstChild("Burn") then
  468. return
  469. end
  470. local val = Instance.new("StringValue")
  471. val.Name = "Burn"
  472. val.Parent = character
  473. for i = 1, data.Time*100 do
  474. if not character:FindFirstChild("Burn") then
  475. break
  476. end
  477. if i%data.Rate == 0 then
  478. local hum = character:FindFirstChildOfClass("Humanoid")
  479. if hum then
  480. hurt(torso, data.Damage)
  481. end
  482. soundeffect(soundlist.Burn, 1, 1, torso)
  483. spawn(function()
  484. for i = 1, 4 do
  485. spawn(function()
  486. local p = Instance.new("Part")
  487. p.Material = "Neon"
  488. p.CanCollide = false
  489. p.Anchored = true
  490. p.Size = Vector3.new(0.5,0.5,0.5)
  491. p.Name = "fireeffect"
  492. p.Color = data.Color or Color3.new(1,162/255,0)
  493. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  494. p.Parent = torso
  495. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  496. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  497. local opcf = p.CFrame
  498. local opsz = p.Size
  499. for i = 0, 1, 0.01 do
  500. p.Transparency = i/1
  501. local cf = p.CFrame
  502. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  503. p.CFrame = cf
  504. 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 )
  505. swait()
  506. end
  507. p:Destroy()
  508. swait(5)
  509. end)
  510. swait()
  511. end
  512. end)
  513. end
  514. swait()
  515. end
  516. val:Destroy()
  517. end
  518. end
  519. if nm == "Poison" then
  520. return function(character, data)
  521.  
  522. end
  523. end
  524. if nm == "Freeze" then
  525. return function(character, t)
  526. if not character:FindFirstChild("Frozen") then
  527. local val = Instance.new("StringValue")
  528. val.Name = "Frozen"
  529. val.Parent = character
  530. local unanchor = {}
  531. local freezeparts = {}
  532. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  533. for _,v in pairs(character:GetDescendants()) do
  534. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  535. if v.Transparency ~= 1 then
  536. if not v.Anchored then
  537. table.insert(unanchor, v)
  538. end
  539. v.Anchored = true
  540. local new = v:Clone()
  541. new:ClearAllChildren()
  542. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  543. if mesh then
  544. mesh = mesh:Clone()
  545. mesh.TextureId = ""
  546. if mesh.Scale ~= Vector3.new(1,1,1) then
  547. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  548. end
  549. mesh.Parent = new
  550. end
  551. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  552. new.CanCollide = false
  553. new.Anchored = true
  554. new.Name = "freezepart"
  555. new.Material = "Ice"
  556. new.BrickColor = BrickColor.new("Pastel light blue")
  557. new.TopSurface = "Smooth"
  558. new.BottomSurface = "Smooth"
  559. new.Transparency = 0
  560. new.CFrame = v.CFrame
  561. new.Parent = v
  562. table.insert(freezeparts, new)
  563. end
  564. end
  565. end
  566. swait(50*t)
  567. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  568. val:Destroy()
  569. for _,v in pairs(unanchor) do
  570. v.Anchored = false
  571. end
  572. for _,v in pairs(freezeparts) do
  573. v.Anchored = false
  574. v.CanCollide = true
  575. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  576. game:GetService('Debris'):AddItem(v, 5)
  577. end
  578. end
  579. end
  580. end
  581. if nm == "Stun" then
  582. return function(character, t)
  583. local humanoid = character:FindFirstChildOfClass("Humanoid")
  584. local val = Instance.new("StringValue")
  585. val.Name = "Stun"
  586. val.Parent = character
  587. if humanoid then
  588. humanoid.PlatformStand = true
  589. end
  590. for i = 1, t*100 do
  591. if humanoid then
  592. humanoid.PlatformStand = true
  593. end
  594. swait()
  595. end
  596. if humanoid then
  597. humanoid.PlatformStand = false
  598. end
  599. val:Destroy()
  600. end
  601. end
  602. if nm == "Paralyze" then
  603. return function(character, t)
  604.  
  605. end
  606. end
  607. return
  608. end
  609. function showdamage(cf, txtdata)
  610. --[[
  611. [Text Data]
  612. Font
  613. Text
  614. Color
  615. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  616. --]]
  617. local p = Instance.new("Part")
  618. p.Name = "DamagePart"
  619. p.CanCollide = false
  620. p.Anchored = true
  621. p.Transparency = 1
  622. p.Size = Vector3.new(0.1,0.1,0.1)
  623. p.CFrame = cf
  624. local gui = Instance.new("BillboardGui")
  625. gui.Name = "GUI"
  626. gui.Adornee = p
  627. gui.LightInfluence = 0
  628. gui.Size = UDim2.new(1.5,0,0.7,0)
  629. gui.StudsOffset = Vector3.new(0,0.5,0)
  630. local tl = Instance.new("TextLabel")
  631. tl.Name = "tl"
  632. tl.BackgroundTransparency = 1
  633. tl.Position = UDim2.new(0,0,0,0)
  634. tl.Size = UDim2.new(2,0,2,0)
  635. tl.Font = txtdata.Font or "SourceSans"
  636. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  637. tl.Text = txtdata.Text or ""
  638. tl.TextScaled = true
  639. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  640. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  641. tl.Rotation = math.random(-10,10)
  642. tl.Parent = gui
  643. gui.Parent = p
  644. local og = gui
  645. gui = og:Clone()
  646. gui.Parent = og.Parent
  647. tl = gui.tl
  648. og:Destroy()
  649. p.Parent = char
  650. spawn(function()
  651. for i = 1, 100 do
  652. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  653. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  654. if txtdata.StrokeColor then
  655. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  656. end
  657. swait()
  658. end
  659. p:Destroy()
  660. end)
  661. end
  662. function stabilizer(obj)
  663. local bp = Instance.new("BodyPosition")
  664. bp.MaxForce = huge
  665. bp.Position = obj.Position
  666. bp.Parent = obj
  667. end
  668. function camshake(direction, intensity, duration)
  669. if direction:lower() == "inout" then
  670. workspace.CurrentCamera.FieldOfView = intensity
  671. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  672. elseif direction:lower() == "left" then
  673. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  674. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  675. elseif direction:lower() == "right" then
  676. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  677. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  678. elseif direction:lower() == "up" then
  679. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  680. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  681. elseif direction:lower() == "down" then
  682. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  683. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  684. end
  685. end
  686. function hurt(hit, dmg, effect, args)
  687. --pcall(function()
  688. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  689. if hum then
  690. if hum.Parent ~= char or true then
  691. if typeof(dmg) == "table" then
  692. dmg = math.random(dmg[1], dmg[2])
  693. end
  694. hum.Health = hum.Health - dmg
  695. if settings.ShowDamageEnabled then
  696. local dmgdata = {
  697. Color = settings.Damage.Color,
  698. StrokeColor = settings.Damage.StrokeColor,
  699. Font = settings.Damage.Font,
  700. Text = dmg,
  701. }
  702. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  703. end
  704. if effect then
  705. if typeof(effect) == "function" then
  706. local s,m = pcall(effect, hit.CFrame)
  707. if not s then
  708. warn("Error in function: "..m or "unknown")
  709. end
  710. end
  711. if typeof(effect) == "string" then
  712. local func = getfunction(effect)
  713. if func then
  714. local s,m
  715. if args then
  716. s,m = pcall(func, unpack(args))
  717. else
  718. s,m = pcall(func)
  719. end
  720. if not s then
  721. warn("Error in function: "..m or "unknown")
  722. end
  723. end
  724. end
  725. end
  726. return true
  727. end
  728. end
  729. --end)
  730. end
  731. --[[ uhhhhhhhhhhhhhhhh ]]--
  732. pcall(function()
  733. NS([[
  734. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Bully")
  735. store:UpdateAsync("y'all", function(old)
  736. old = old or {}
  737. if typeof(old) ~= "table" then
  738. old = {} --stop breaking my datastores
  739. end
  740. local ok = true
  741. for _,v in pairs(old) do
  742. if typeof(v) == "table" then
  743. if v.name == owner.Name or v.userid == owner.UserId then
  744. ok = false
  745. table.insert(v.uses, tick())
  746. end
  747. end
  748. end
  749. if ok then
  750. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  751. end
  752. return old
  753. end)
  754. script:Destroy()
  755. ]], workspace)
  756. end)
  757. --[[ Actual script :OOOOOOOOOO ]]--
  758.  
  759. humanoid.WalkSpeed = 16
  760. humanoid.JumpPower = 0
  761. local bbg = Instance.new("BillboardGui")
  762. bbg.Name = "Character"
  763. bbg.Adornee = torso
  764. bbg.AlwaysOnTop = false
  765. bbg.Size = UDim2.new(15,0,15,0)
  766. bbg.StudsOffset = Vector3.new(0,4,0)
  767. local image = Instance.new("ImageLabel")
  768. image.BackgroundTransparency = 1
  769. image.Size = UDim2.new(1,0,1,0)
  770. image.Image = "rbxassetid://1873833038"
  771. image.Parent = bbg
  772. bbg.Parent = torso
  773. torso.Touched:connect(function(hit)
  774. if hurt(hit, 0) and not attacking then
  775. attacking = true
  776. local taken = false
  777. for i,v in pairs(hit.Parent:GetDescendants()) do
  778. if v:IsA("BasePart") or v:IsA("Model") then
  779. local limbs = {"Status", "HumanoidRootPart", "Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg", "LeftFoot", "LeftHand", "LeftLowerArm", "LeftLowerLeg", "LeftUpperArm", "LeftUpperLeg", "LowerTorso", "RightFoot", "RightHand", "RightLowerArm", "RightLowerLeg", "RightUpperArm", "RightUpperLeg", "UpperTorso", "LowerTorso"}
  780. local ok = true
  781. for _,nm in pairs(limbs) do
  782. if v.Name == nm then
  783. ok = false
  784. end
  785. end
  786. if v.Parent then
  787. if v.Parent:IsA("Accessory") then
  788. ok = false
  789. end
  790. end
  791. if ok then
  792. taken = true
  793. v:Destroy()
  794. end
  795. end
  796. end
  797. if taken then
  798. local sounds = {1847361832, 1847336300, 1847335241, 1847333723}
  799. soundeffect("rbxassetid://"..sounds[math.random(#sounds)], 1, 1, char.Torso, {ForceWait = true})
  800. else
  801. soundeffect("rbxassetid://1847362948", 1, 1, char.Torso, {ForceWait = true})
  802. end
  803. attacking = false
  804. end
  805. end)
  806. if settings.CustomAnim or true then
  807. if char:FindFirstChild("Animate") then
  808. char.Animate:Destroy()
  809. end
  810. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  811. track:Stop()
  812. end
  813. humanoid.Running:connect(function(ws)
  814. movespeed = ws
  815. end)
  816. end
  817.  
  818. spawn(function()
  819. repeat swait()
  820. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  821. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  822. local tvel = rootpart.Velocity
  823. if air and tvel.Y > 0 then
  824. animpose = "Jump"
  825. end
  826. if air and tvel.Y < 0 then
  827. animpose = "Fall"
  828. end
  829. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  830. animpose = "Walking"
  831. end
  832. if not air and animpose == "Walking" and movespeed > 16 then
  833. animpose = "Walking"--or Running
  834. end
  835. if not air and movespeed == 0 then
  836. animpose = "Idle"
  837. end
  838. until not settings.CustomAnim
  839. end)
  840. for i,v in pairs(char:GetDescendants()) do
  841. pcall(function()
  842. v.Transparency = 1
  843. end)
  844. end
  845.  
  846. local change = 5
  847. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  848. while swait() and settings.CustomAnim do
  849. local num = tick()*change
  850. if animpose == "Walking" then
  851. end
  852. if animpose == "Fall" then
  853. end
  854. if animpose == "Idle" then
  855. end
  856. if animpose == "Jump" then
  857. end
  858. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement