Advertisement
IMAKESCRIPTSATSCHOOL

Extra Functions Addon (Roblox)

Feb 28th, 2022
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.16 KB | None | 0 0
  1. --Extra Functions Addon by Sandersity
  2.  
  3. --Guide: https://pastebin.com/vuHwfhGA
  4.  
  5. warn("Extra Functions has loaded for "..script.Name.."!")local a="Player"local b="Humanoid"local c="Model"function setSize(d,e,f,z)d.Size=Vector3.new(e,f,z)end;function setOrientation(d,e,f,z)d.Orientation=Vector3.new(e,f,z)end;function setPosition(d,e,f,e)d.Position=Vector3.new(e,f,z)end;function changeSize(d,e,f,z)d.Size=d.Size+Vector3.new(e,f,z)end;function changeOrientation(d,e,f,z)d.Orientation=d.Orientation+Vector3.new(e,f,z)end;function changePosition(d,e,f,z)d.Position=d.Position+Vector3.new(e,f,z)end;function kill(g)if g.ClassName==a then g.Character:FindFirstChild(b).Health=0 elseif g.ClassName==c then g:FindFirstChild(b).Health=0 end end;function killAll()for h,i in pairs(game:GetService(a.."s"):GetChildren())do if i.ClassName==a then i.Character:FindFirstChild(b).Health=0 end end end;function setHealth(g,j)if g.ClassName==a then g.Character:FindFirstChild(b).Health=j elseif g.ClassName==c then g:FindFirstChild(b).Health=j end end;function delete(k)k:Destroy()end;function kickPlayer(g,l)if g.ClassName==a then g:Kick(l)elseif g.ClassName==c then for h,i in pairs(game:GetService("Players"):GetChildren())do if i.Name==g.Name then i:Kick(l)end end end end;function RNG(m,n)return math.random(m,n)end;function playSound(o,p)local q=Instance.new("Sound",workspace)q.SoundId=o;q.Looped=p;q.Playing=true end;function findInstance(r)return game:FindFirstDescendant(r)end;function setWalkSpeed(g,s)if g.ClassName==a then g.Character:FindFirstChild(b).WalkSpeed=s elseif g.ClassName==c then g:FindFirstChild(b).WalkSpeed=s end end;function setJumpPower(g,t)if g.ClassName==a then g.Character:FindFirstChild(b).JumpPower=t elseif g.ClassName==c then g:FindFirstChild(b).JumpPower=t end end;function createExplosion(e,f,z,u,v)local w=Instance.new("Explosion",workspace)w.Position=Vector3.new(e,f,z)w.BlastPressure=u;w.BlastRadius=v;return w end;function createInstance(x,y)Instance.new(x,y)end;function loadModel(o,y)local A=game:GetService("InsertService"):LoadAsset(o)A.Parent=y;return A end;function kickAll(B)for h,i in pairs(game:GetService(a.."s"):GetChildren())do if i.ClassName==a then i:Kick(B)end end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement