SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | local rp = RealPlayer | |
| 6 | script.Parent = rp.Character | |
| 7 | ||
| 8 | --RemoteEvent for communicating | |
| 9 | local Event = Instance.new("RemoteEvent")
| |
| 10 | Event.Name = "UserInput_Event" | |
| 11 | ||
| 12 | --Fake event to make stuff like Mouse.KeyDown work | |
| 13 | local function fakeEvent() | |
| 14 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 15 | t.connect = t.Connect | |
| 16 | return t | |
| 17 | end | |
| 18 | ||
| 19 | --Creating fake input objects with fake variables | |
| 20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 21 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 22 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 23 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 24 | end} | |
| 25 | --Merged 2 functions into one by checking amount of arguments | |
| 26 | CAS.UnbindAction = CAS.BindAction | |
| 27 | ||
| 28 | --This function will trigger the events that have been :Connect()'ed | |
| 29 | local function te(self,ev,...) | |
| 30 | local t = m[ev] | |
| 31 | if t and t._fakeEvent then | |
| 32 | for _,f in pairs(t.Functions) do | |
| 33 | f(...) | |
| 34 | end | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=rp then return end | |
| 42 | m.Target = io.Target | |
| 43 | m.Hit = io.Hit | |
| 44 | if not io.isMouse then | |
| 45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 47 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 48 | end | |
| 49 | for _,t in pairs(CAS.Actions) do | |
| 50 | for _,k in pairs(t.Keys) do | |
| 51 | if k==io.KeyCode then | |
| 52 | t.Function(t.Name,io.UserInputState,io) | |
| 53 | end | |
| 54 | end | |
| 55 | end | |
| 56 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 57 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 58 | end | |
| 59 | end) | |
| 60 | Event.Parent = NLS([==[ | |
| 61 | local Player = game:GetService("Players").LocalPlayer
| |
| 62 | local Event = script:WaitForChild("UserInput_Event")
| |
| 63 | ||
| 64 | local Mouse = Player:GetMouse() | |
| 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,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local h,t | |
| 75 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 76 | --If player is not moving their mouse, client won't fire events | |
| 77 | while wait(1/30) do | |
| 78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 79 | h,t=Mouse.Hit,Mouse.Target | |
| 80 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 81 | end | |
| 82 | end]==],Player.Character) | |
| 83 | ||
| 84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 85 | --Real game object | |
| 86 | local _rg = game | |
| 87 | ||
| 88 | --Metatable for fake service | |
| 89 | local fsmt = {
| |
| 90 | __index = function(self,k) | |
| 91 | local s = rawget(self,"_RealService") | |
| 92 | if s then return s[k] end | |
| 93 | end, | |
| 94 | __newindex = function(self,k,v) | |
| 95 | local s = rawget(self,"_RealService") | |
| 96 | if s then s[k]=v end | |
| 97 | end, | |
| 98 | __call = function(self,...) | |
| 99 | local s = rawget(self,"_RealService") | |
| 100 | if s then return s(...) end | |
| 101 | end | |
| 102 | } | |
| 103 | local function FakeService(t,RealService) | |
| 104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 105 | return setmetatable(t,fsmt) | |
| 106 | end | |
| 107 | ||
| 108 | --Fake game object | |
| 109 | local g = {
| |
| 110 | GetService = function(self,s) | |
| 111 | return self[s] | |
| 112 | end, | |
| 113 | Players = FakeService({
| |
| 114 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 115 | },"Players"), | |
| 116 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 117 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 118 | } | |
| 119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 120 | g.service = g.GetService | |
| 121 | ||
| 122 | g.RunService = FakeService({
| |
| 123 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 124 | BindToRenderStep = function(self,name,_,fun) | |
| 125 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 126 | end, | |
| 127 | UnbindFromRenderStep = function(self,name) | |
| 128 | self._btrs[name]:Disconnect() | |
| 129 | end, | |
| 130 | },"RunService") | |
| 131 | ||
| 132 | setmetatable(g,{
| |
| 133 | __index=function(self,s) | |
| 134 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 135 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 136 | end, | |
| 137 | __newindex = fsmt.__newindex, | |
| 138 | __call = fsmt.__call | |
| 139 | }) | |
| 140 | --Changing owner to fake player object to support owner:GetMouse() | |
| 141 | game,owner = g,g.Players.LocalPlayer | |
| 142 | end | |
| 143 | ||
| 144 | Player = owner | |
| 145 | PlayerGui = Player.PlayerGui | |
| 146 | Cam = workspace.CurrentCamera | |
| 147 | Backpack = Player.Backpack | |
| 148 | char = Player.Character | |
| 149 | Humanoid = char.Humanoid | |
| 150 | Mouse = Player:GetMouse() | |
| 151 | --------------------------------------------------- | |
| 152 | local LeftUpperArm = char.LeftUpperArm | |
| 153 | local LeftShoulder = char.LeftUpperArm.LeftShoulder | |
| 154 | local LeftLowerArm = char.LeftLowerArm | |
| 155 | local LeftElbow = char.LeftLowerArm.LeftElbow | |
| 156 | -------------------------------------------------------- | |
| 157 | local LeftUpperLeg = char.LeftUpperLeg | |
| 158 | local LeftHip = char.LeftUpperLeg.LeftHip | |
| 159 | local LeftLowerLeg = char.LeftLowerLeg | |
| 160 | local LeftKnee = char.LeftLowerLeg.LeftKnee | |
| 161 | ---------------------------------------------------------- | |
| 162 | local RightUpperArm = char.RightUpperArm | |
| 163 | local RightShoulder = char.RightUpperArm.RightShoulder | |
| 164 | local RightLowerArm = char.RightLowerArm | |
| 165 | local RightElbow = char.RightLowerArm.RightElbow | |
| 166 | ---------------------------------------------------------- | |
| 167 | local RightUpperLeg = char.RightUpperLeg | |
| 168 | local RightHip = char.RightUpperLeg.RightHip | |
| 169 | local RightLowerLeg = char.RightLowerLeg | |
| 170 | local RightKnee = char.RightLowerLeg.RightKnee | |
| 171 | ---------------------------------------------------------- | |
| 172 | local UpperTorso = char.UpperTorso | |
| 173 | local LowerTorso = char.LowerTorso | |
| 174 | local Root = char.LowerTorso.Root | |
| 175 | local RootPart = char.HumanoidRootPart | |
| 176 | local LeftHand = char.LeftHand | |
| 177 | local RightHand = char.RightHand | |
| 178 | local LeftFoot = char.LeftFoot | |
| 179 | local RightFoot = char.RightFoot | |
| 180 | -------------------------------------------- | |
| 181 | local Head = char.Head | |
| 182 | local Neck = char.Head.Neck | |
| 183 | local oldAnim = currentAnim | |
| 184 | ||
| 185 | removeuseless = game:GetService("Debris")
| |
| 186 | laff = Instance.new("Sound",Head)
| |
| 187 | tauntdebounce = false | |
| 188 | char = Player.Character | |
| 189 | Humanoid = char.Humanoid | |
| 190 | --------- | |
| 191 | plr = game.Players.LocalPlayer | |
| 192 | char = plr.Character | |
| 193 | mouse = plr:GetMouse() | |
| 194 | Create = Instance.new | |
| 195 | Huge = math.huge | |
| 196 | ||
| 197 | ||
| 198 | local Orin = "http://www.roblox.com/asset/?id=1065951398" | |
| 199 | Head.face.Texture = Orin | |
| 200 | function weld(a, b, acf) | |
| 201 | local w = Instance.new("Weld", a)
| |
| 202 | w.Part0 = a | |
| 203 | w.Part1 = b | |
| 204 | w.C0 = acf | |
| 205 | end | |
| 206 | -------------------------------- | |
| 207 | char.Head.face.Texture = "rbxassetid://0" | |
| 208 | -------------------------------- | |
| 209 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 210 | naeeym2.AlwaysOnTop = true | |
| 211 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 212 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 213 | naeeym2.Adornee = hed | |
| 214 | naeeym2.Name = "Name" | |
| 215 | ||
| 216 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 217 | tecks2.BackgroundTransparency = 1 | |
| 218 | tecks2.TextScaled = true | |
| 219 | tecks2.BorderSizePixel = 0 | |
| 220 | tecks2.Text = "" | |
| 221 | tecks2.Font = "Fantasy" | |
| 222 | tecks2.TextSize = 30 | |
| 223 | tecks2.TextStrokeTransparency = 0 | |
| 224 | tecks2.TextColor3 = BrickColor.new('Earth orange').Color
| |
| 225 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
| |
| 226 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 227 | tecks2.Parent = naeeym2 | |
| 228 | textfag = tecks2 | |
| 229 | tecks2.Text = "" | |
| 230 | tecks2.Text = "script by xdielivex" | |
| 231 | wait(1) | |
| 232 | - | tecks2.Text = "Teapot Man" |
| 232 | + | |
| 233 | coroutine.resume(coroutine.create(function() | |
| 234 | while textfag ~= nil do | |
| 235 | swait() | |
| 236 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 237 | textfag.Rotation = math.random(-3,3) | |
| 238 | end | |
| 239 | end)) | |
| 240 | ------------------------------------------------------- | |
| 241 | wait(0.2) | |
| 242 | local plr = game:service'Players'.LocalPlayer | |
| 243 | local char = plr.Character | |
| 244 | local hum = char.Humanoid | |
| 245 | local hed = char.Head | |
| 246 | local root = char.HumanoidRootPart | |
| 247 | local tors = char.UpperTorso | |
| 248 | local ra = char.RightUpperArm | |
| 249 | local la = char.LeftUpperArm | |
| 250 | local rl = char.RightUpperLeg | |
| 251 | local ll = char.LeftUpperLeg | |
| 252 | local neck = char.Head.Neck | |
| 253 | local mouse = plr:GetMouse() | |
| 254 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 255 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 256 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 257 | - | local maincolor = BrickColor.new("Plum")
|
| 257 | + | local maincolor = BrickColor.new("Bright red")
|
| 258 | ||
| 259 | ------------------------------------------------------- | |
| 260 | --Start Good Stuff-- | |
| 261 | ------------------------------------------------------- | |
| 262 | cam = game.Workspace.CurrentCamera | |
| 263 | CF = CFrame.new | |
| 264 | angles = CFrame.Angles | |
| 265 | attack = false | |
| 266 | Euler = CFrame.fromEulerAnglesXYZ | |
| 267 | Rad = math.rad | |
| 268 | IT = Instance.new | |
| 269 | BrickC = BrickColor.new | |
| 270 | Cos = math.cos | |
| 271 | Acos = math.acos | |
| 272 | Sin = math.sin | |
| 273 | Asin = math.asin | |
| 274 | Abs = math.abs | |
| 275 | Mrandom = math.random | |
| 276 | Floor = math.floor | |
| 277 | ------------------------------------------------------- | |
| 278 | --End Good Stuff-- | |
| 279 | ------------------------------------------------------- | |
| 280 | ------------------------------------------------------- | |
| 281 | --Start HeartBeat-- | |
| 282 | ------------------------------------------------------- | |
| 283 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 284 | ArtificialHB.Name = "Heartbeat" | |
| 285 | script:WaitForChild("Heartbeat")
| |
| 286 | ||
| 287 | frame = 1 / 60 | |
| 288 | tf = 0 | |
| 289 | allowframeloss = false | |
| 290 | tossremainder = false | |
| 291 | ||
| 292 | ||
| 293 | lastframe = tick() | |
| 294 | script.Heartbeat:Fire() | |
| 295 | ||
| 296 | ||
| 297 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 298 | tf = tf + s | |
| 299 | if tf >= frame then | |
| 300 | if allowframeloss then | |
| 301 | script.Heartbeat:Fire() | |
| 302 | lastframe = tick() | |
| 303 | else | |
| 304 | for i = 1, math.floor(tf / frame) do | |
| 305 | script.Heartbeat:Fire() | |
| 306 | end | |
| 307 | lastframe = tick() | |
| 308 | end | |
| 309 | if tossremainder then | |
| 310 | tf = 0 | |
| 311 | else | |
| 312 | tf = tf - frame * math.floor(tf / frame) | |
| 313 | end | |
| 314 | end | |
| 315 | end) | |
| 316 | ------------------------------------------------------- | |
| 317 | --End HeartBeat-- | |
| 318 | ------------------------------------------------------- | |
| 319 | ||
| 320 | ------------------------------------------------------- | |
| 321 | --Start Important Functions-- | |
| 322 | ------------------------------------------------------- | |
| 323 | function swait(num) | |
| 324 | if num == 0 or num == nil then | |
| 325 | game:service("RunService").Stepped:wait(0)
| |
| 326 | else | |
| 327 | for i = 0, num do | |
| 328 | game:service("RunService").Stepped:wait(0)
| |
| 329 | end | |
| 330 | end | |
| 331 | end | |
| 332 | function thread(f) | |
| 333 | coroutine.resume(coroutine.create(f)) | |
| 334 | end | |
| 335 | function clerp(a, b, t) | |
| 336 | local qa = {
| |
| 337 | QuaternionFromCFrame(a) | |
| 338 | } | |
| 339 | local qb = {
| |
| 340 | QuaternionFromCFrame(b) | |
| 341 | } | |
| 342 | local ax, ay, az = a.x, a.y, a.z | |
| 343 | local bx, by, bz = b.x, b.y, b.z | |
| 344 | local _t = 1 - t | |
| 345 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 346 | end | |
| 347 | function QuaternionFromCFrame(cf) | |
| 348 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 349 | local trace = m00 + m11 + m22 | |
| 350 | if trace > 0 then | |
| 351 | local s = math.sqrt(1 + trace) | |
| 352 | local recip = 0.5 / s | |
| 353 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 354 | else | |
| 355 | local i = 0 | |
| 356 | if m00 < m11 then | |
| 357 | i = 1 | |
| 358 | end | |
| 359 | if m22 > (i == 0 and m00 or m11) then | |
| 360 | i = 2 | |
| 361 | end | |
| 362 | if i == 0 then | |
| 363 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 364 | local recip = 0.5 / s | |
| 365 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 366 | elseif i == 1 then | |
| 367 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 368 | local recip = 0.5 / s | |
| 369 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 370 | elseif i == 2 then | |
| 371 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 372 | local recip = 0.5 / s | |
| 373 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 374 | end | |
| 375 | end | |
| 376 | end | |
| 377 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 378 | local xs, ys, zs = x + x, y + y, z + z | |
| 379 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 380 | local xx = x * xs | |
| 381 | local xy = x * ys | |
| 382 | local xz = x * zs | |
| 383 | local yy = y * ys | |
| 384 | local yz = y * zs | |
| 385 | local zz = z * zs | |
| 386 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 387 | end | |
| 388 | function QuaternionSlerp(a, b, t) | |
| 389 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 390 | local startInterp, finishInterp | |
| 391 | if cosTheta >= 1.0E-4 then | |
| 392 | if 1 - cosTheta > 1.0E-4 then | |
| 393 | local theta = math.acos(cosTheta) | |
| 394 | local invSinTheta = 1 / Sin(theta) | |
| 395 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 396 | finishInterp = Sin(t * theta) * invSinTheta | |
| 397 | else | |
| 398 | startInterp = 1 - t | |
| 399 | finishInterp = t | |
| 400 | end | |
| 401 | elseif 1 + cosTheta > 1.0E-4 then | |
| 402 | local theta = math.acos(-cosTheta) | |
| 403 | local invSinTheta = 1 / Sin(theta) | |
| 404 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 405 | finishInterp = Sin(t * theta) * invSinTheta | |
| 406 | else | |
| 407 | startInterp = t - 1 | |
| 408 | finishInterp = t | |
| 409 | end | |
| 410 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 411 | end | |
| 412 | function rayCast(Position, Direction, Range, Ignore) | |
| 413 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 414 | end | |
| 415 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 416 | local Create = RbxUtility.Create | |
| 417 | ||
| 418 | ------------------------------------------------------- | |
| 419 | --Start Damage Function-- | |
| 420 | ------------------------------------------------------- | |
| 421 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 422 | if hit.Parent == nil then | |
| 423 | return | |
| 424 | end | |
| 425 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 426 | for _, v in pairs(hit.Parent:children()) do | |
| 427 | if v:IsA("Humanoid") then
| |
| 428 | h = v | |
| 429 | end | |
| 430 | end | |
| 431 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 432 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 433 | if hit.Parent.DebounceHit.Value == true then | |
| 434 | return | |
| 435 | end | |
| 436 | end | |
| 437 | if insta == true then | |
| 438 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 439 | end | |
| 440 | local c = Create("ObjectValue"){
| |
| 441 | Name = "creator", | |
| 442 | Value = game:service("Players").LocalPlayer,
| |
| 443 | Parent = h, | |
| 444 | } | |
| 445 | game:GetService("Debris"):AddItem(c, .5)
| |
| 446 | if HitSound ~= nil and HitPitch ~= nil then | |
| 447 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 448 | end | |
| 449 | local Damage = math.random(minim, maxim) | |
| 450 | local blocked = false | |
| 451 | local block = hit.Parent:findFirstChild("Block")
| |
| 452 | if block ~= nil then | |
| 453 | if block.className == "IntValue" then | |
| 454 | if block.Value > 0 then | |
| 455 | blocked = true | |
| 456 | block.Value = block.Value - 1 | |
| 457 | print(block.Value) | |
| 458 | end | |
| 459 | end | |
| 460 | end | |
| 461 | if blocked == false then | |
| 462 | h.Health = h.Health - Damage | |
| 463 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 464 | else | |
| 465 | h.Health = h.Health - (Damage / 2) | |
| 466 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 467 | end | |
| 468 | if Type == "Knockdown" then | |
| 469 | local hum = hit.Parent.Humanoid | |
| 470 | hum.PlatformStand = true | |
| 471 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 472 | swait(1) | |
| 473 | HHumanoid.PlatformStand = false | |
| 474 | end), hum) | |
| 475 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 476 | local bodvol = Create("BodyVelocity"){
| |
| 477 | velocity = angle * knockback, | |
| 478 | P = 5000, | |
| 479 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 480 | Parent = hit, | |
| 481 | } | |
| 482 | local rl = Create("BodyAngularVelocity"){
| |
| 483 | P = 3000, | |
| 484 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 485 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 486 | Parent = hit, | |
| 487 | } | |
| 488 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 489 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 490 | elseif Type == "Normal" then | |
| 491 | local vp = Create("BodyVelocity"){
| |
| 492 | P = 500, | |
| 493 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 494 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 495 | } | |
| 496 | if knockback > 0 then | |
| 497 | vp.Parent = hit.Parent.Torso | |
| 498 | end | |
| 499 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 500 | elseif Type == "Up" then | |
| 501 | local bodyVelocity = Create("BodyVelocity"){
| |
| 502 | velocity = Vector3.new(0, 20, 0), | |
| 503 | P = 5000, | |
| 504 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 505 | Parent = hit, | |
| 506 | } | |
| 507 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 508 | elseif Type == "DarkUp" then | |
| 509 | coroutine.resume(coroutine.create(function() | |
| 510 | for i = 0, 1, 0.1 do | |
| 511 | swait() | |
| 512 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 513 | end | |
| 514 | end)) | |
| 515 | local bodyVelocity = Create("BodyVelocity"){
| |
| 516 | velocity = Vector3.new(0, 20, 0), | |
| 517 | P = 5000, | |
| 518 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 519 | Parent = hit, | |
| 520 | } | |
| 521 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 522 | elseif Type == "Snare" then | |
| 523 | local bp = Create("BodyPosition"){
| |
| 524 | P = 2000, | |
| 525 | D = 100, | |
| 526 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 527 | position = hit.Parent.Torso.Position, | |
| 528 | Parent = hit.Parent.Torso, | |
| 529 | } | |
| 530 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 531 | elseif Type == "Freeze" then | |
| 532 | local BodPos = Create("BodyPosition"){
| |
| 533 | P = 50000, | |
| 534 | D = 1000, | |
| 535 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 536 | position = hit.Parent.Torso.Position, | |
| 537 | Parent = hit.Parent.Torso, | |
| 538 | } | |
| 539 | local BodGy = Create("BodyGyro") {
| |
| 540 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 541 | P = 20e+003, | |
| 542 | Parent = hit.Parent.Torso, | |
| 543 | cframe = hit.Parent.Torso.CFrame, | |
| 544 | } | |
| 545 | hit.Parent.Torso.Anchored = true | |
| 546 | coroutine.resume(coroutine.create(function(Part) | |
| 547 | swait(1.5) | |
| 548 | Part.Anchored = false | |
| 549 | end), hit.Parent.Torso) | |
| 550 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 551 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 552 | end | |
| 553 | local debounce = Create("BoolValue"){
| |
| 554 | Name = "DebounceHit", | |
| 555 | Parent = hit.Parent, | |
| 556 | Value = true, | |
| 557 | } | |
| 558 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 559 | c = Create("ObjectValue"){
| |
| 560 | Name = "creator", | |
| 561 | Value = Player, | |
| 562 | Parent = h, | |
| 563 | } | |
| 564 | game:GetService("Debris"):AddItem(c, .5)
| |
| 565 | end | |
| 566 | end | |
| 567 | ------------------------------------------------------- | |
| 568 | --End Damage Function-- | |
| 569 | ------------------------------------------------------- | |
| 570 | ||
| 571 | ------------------------------------------------------- | |
| 572 | --Start Damage Function Customization-- | |
| 573 | ------------------------------------------------------- | |
| 574 | function ShowDamage(Pos, Text, Time, Color) | |
| 575 | local Rate = (1 / 30) | |
| 576 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 577 | local Text = (Text or "") | |
| 578 | local Time = (Time or 2) | |
| 579 | local Color = (Color or Color3.new(255, 255, 1)) | |
| 580 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 581 | EffectPart.Anchored = true | |
| 582 | local BillboardGui = Create("BillboardGui"){
| |
| 583 | Size = UDim2.new(3, 0, 3, 0), | |
| 584 | Adornee = EffectPart, | |
| 585 | Parent = EffectPart, | |
| 586 | } | |
| 587 | local TextLabel = Create("TextLabel"){
| |
| 588 | BackgroundTransparency = 1, | |
| 589 | Size = UDim2.new(1, 0, 1, 0), | |
| 590 | Text = Text, | |
| 591 | Font = "Bodoni", | |
| 592 | TextColor3 = Color, | |
| 593 | TextScaled = true, | |
| 594 | TextStrokeColor3 = Color3.fromRGB(220, 188, 129), | |
| 595 | Parent = BillboardGui, | |
| 596 | } | |
| 597 | game.Debris:AddItem(EffectPart, (Time)) | |
| 598 | EffectPart.Parent = game:GetService("Workspace")
| |
| 599 | delay(0, function() | |
| 600 | local Frames = (Time / Rate) | |
| 601 | for Frame = 1, Frames do | |
| 602 | wait(Rate) | |
| 603 | local Percent = (Frame / Frames) | |
| 604 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 605 | TextLabel.TextTransparency = Percent | |
| 606 | end | |
| 607 | if EffectPart and EffectPart.Parent then | |
| 608 | EffectPart:Destroy() | |
| 609 | end | |
| 610 | end) | |
| 611 | end | |
| 612 | ------------------------------------------------------- | |
| 613 | --End Damage Function Customization-- | |
| 614 | ------------------------------------------------------- | |
| 615 | ||
| 616 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 617 | for _, c in pairs(workspace:children()) do | |
| 618 | local hum = c:findFirstChild("Humanoid")
| |
| 619 | if hum ~= nil then | |
| 620 | local head = c:findFirstChild("Head")
| |
| 621 | if head ~= nil then | |
| 622 | local targ = head.Position - Part.Position | |
| 623 | local mag = targ.magnitude | |
| 624 | if magni >= mag and c.Name ~= plr.Name then | |
| 625 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 626 | end | |
| 627 | end | |
| 628 | end | |
| 629 | end | |
| 630 | end | |
| 631 | ||
| 632 | ||
| 633 | CFuncs = {
| |
| 634 | Part = {
| |
| 635 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 636 | local Part = Create("Part")({
| |
| 637 | Parent = Parent, | |
| 638 | Reflectance = Reflectance, | |
| 639 | Transparency = Transparency, | |
| 640 | CanCollide = false, | |
| 641 | Locked = true, | |
| 642 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 643 | Name = Name, | |
| 644 | Size = Size, | |
| 645 | Material = Material | |
| 646 | }) | |
| 647 | RemoveOutlines(Part) | |
| 648 | return Part | |
| 649 | end | |
| 650 | }, | |
| 651 | Mesh = {
| |
| 652 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 653 | local Msh = Create(Mesh)({
| |
| 654 | Parent = Part, | |
| 655 | Offset = OffSet, | |
| 656 | Scale = Scale | |
| 657 | }) | |
| 658 | if Mesh == "SpecialMesh" then | |
| 659 | Msh.MeshType = MeshType | |
| 660 | Msh.MeshId = MeshId | |
| 661 | end | |
| 662 | return Msh | |
| 663 | end | |
| 664 | }, | |
| 665 | Mesh = {
| |
| 666 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 667 | local Msh = Create(Mesh)({
| |
| 668 | Parent = Part, | |
| 669 | Offset = OffSet, | |
| 670 | Scale = Scale | |
| 671 | }) | |
| 672 | if Mesh == "SpecialMesh" then | |
| 673 | Msh.MeshType = MeshType | |
| 674 | Msh.MeshId = MeshId | |
| 675 | end | |
| 676 | return Msh | |
| 677 | end | |
| 678 | }, | |
| 679 | Weld = {
| |
| 680 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 681 | local Weld = Create("Weld")({
| |
| 682 | Parent = Parent, | |
| 683 | Part0 = Part0, | |
| 684 | Part1 = Part1, | |
| 685 | C0 = C0, | |
| 686 | C1 = C1 | |
| 687 | }) | |
| 688 | return Weld | |
| 689 | end | |
| 690 | }, | |
| 691 | Sound = {
| |
| 692 | Create = function(id, par, vol, pit) | |
| 693 | coroutine.resume(coroutine.create(function() | |
| 694 | local S = Create("Sound")({
| |
| 695 | Volume = vol, | |
| 696 | Pitch = pit or 1, | |
| 697 | SoundId = id, | |
| 698 | Parent = par or workspace | |
| 699 | }) | |
| 700 | wait() | |
| 701 | S:play() | |
| 702 | game:GetService("Debris"):AddItem(S, 6)
| |
| 703 | end)) | |
| 704 | end | |
| 705 | }, | |
| 706 | ParticleEmitter = {
| |
| 707 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 708 | local fp = Create("ParticleEmitter")({
| |
| 709 | Parent = Parent, | |
| 710 | Color = ColorSequence.new(Color1, Color2), | |
| 711 | LightEmission = LightEmission, | |
| 712 | Size = Size, | |
| 713 | Texture = Texture, | |
| 714 | Transparency = Transparency, | |
| 715 | ZOffset = ZOffset, | |
| 716 | Acceleration = Accel, | |
| 717 | Drag = Drag, | |
| 718 | LockedToPart = LockedToPart, | |
| 719 | VelocityInheritance = VelocityInheritance, | |
| 720 | EmissionDirection = EmissionDirection, | |
| 721 | Enabled = Enabled, | |
| 722 | Lifetime = LifeTime, | |
| 723 | Rate = Rate, | |
| 724 | Rotation = Rotation, | |
| 725 | RotSpeed = RotSpeed, | |
| 726 | Speed = Speed, | |
| 727 | VelocitySpread = VelocitySpread | |
| 728 | }) | |
| 729 | return fp | |
| 730 | end | |
| 731 | } | |
| 732 | } | |
| 733 | function RemoveOutlines(part) | |
| 734 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 735 | end | |
| 736 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 737 | local Part = Create("Part")({
| |
| 738 | formFactor = FormFactor, | |
| 739 | Parent = Parent, | |
| 740 | Reflectance = Reflectance, | |
| 741 | Transparency = Transparency, | |
| 742 | CanCollide = false, | |
| 743 | Locked = true, | |
| 744 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 745 | Name = Name, | |
| 746 | Size = Size, | |
| 747 | Material = Material | |
| 748 | }) | |
| 749 | RemoveOutlines(Part) | |
| 750 | return Part | |
| 751 | end | |
| 752 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 753 | local Msh = Create(Mesh)({
| |
| 754 | Parent = Part, | |
| 755 | Offset = OffSet, | |
| 756 | Scale = Scale | |
| 757 | }) | |
| 758 | if Mesh == "SpecialMesh" then | |
| 759 | Msh.MeshType = MeshType | |
| 760 | Msh.MeshId = MeshId | |
| 761 | end | |
| 762 | return Msh | |
| 763 | end | |
| 764 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 765 | local Weld = Create("Weld")({
| |
| 766 | Parent = Parent, | |
| 767 | Part0 = Part0, | |
| 768 | Part1 = Part1, | |
| 769 | C0 = C0, | |
| 770 | C1 = C1 | |
| 771 | }) | |
| 772 | return Weld | |
| 773 | end | |
| 774 | ||
| 775 | ||
| 776 | ||
| 777 | ------------------------------------------------------- | |
| 778 | --End Effect Function-- | |
| 779 | ------------------------------------------------------- | |
| 780 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 781 | local NSound = nil | |
| 782 | coroutine.resume(coroutine.create(function() | |
| 783 | NSound = IT("Sound", PARENT)
| |
| 784 | NSound.Volume = VOLUME | |
| 785 | NSound.Pitch = PITCH | |
| 786 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 787 | swait() | |
| 788 | NSound:play() | |
| 789 | game:GetService("Debris"):AddItem(NSound, 50)
| |
| 790 | end)) | |
| 791 | return NSound | |
| 792 | end | |
| 793 | function CameraEnshaking(Length, Intensity) | |
| 794 | coroutine.resume(coroutine.create(function() | |
| 795 | local intensity = 1 * Intensity | |
| 796 | local rotM = 0.01 * Intensity | |
| 797 | for i = 0, Length, 0.1 do | |
| 798 | swait() | |
| 799 | intensity = intensity - 0.05 * Intensity / Length | |
| 800 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 801 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 802 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
| 803 | end | |
| 804 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 805 | end)) | |
| 806 | end | |
| 807 | ------------------------------------------------------- | |
| 808 | --End Important Functions-- | |
| 809 | ------------------------------------------------------- | |
| 810 | ||
| 811 | ---------------------------------------------------------------------------------- | |
| 812 | hum.WalkSpeed = 16 | |
| 813 | hum.JumpPower = 60 | |
| 814 | ---------------------------------------------------------------------------------- | |
| 815 | ||
| 816 | local AddInstance = function(Object, ...) | |
| 817 | local Obj = Instance.new(Object) | |
| 818 | for i,v in next,(...) do | |
| 819 | Obj[i] = v | |
| 820 | end | |
| 821 | return Obj | |
| 822 | end | |
| 823 | ---------------------------------------------------- | |
| 824 | ||
| 825 | ||
| 826 | local Reaper = AddInstance("Part",{
| |
| 827 | Parent = hed, | |
| 828 | CFrame = hed.CFrame, | |
| 829 | formFactor = "Symmetric", | |
| 830 | Size = Vector3.new(1, 1, 1), | |
| 831 | CanCollide = false, | |
| 832 | TopSurface = "Smooth", | |
| 833 | BottomSurface = "Smooth", | |
| 834 | Locked = true, | |
| 835 | }) | |
| 836 | local Weld = AddInstance("Weld",{
| |
| 837 | Parent = Reaper, | |
| 838 | Part0 = hed, | |
| 839 | C0 = CFrame.new(0, 1.45, 0)*CFrame.Angles(0, 0, 0), | |
| 840 | Part1 = Reaper, | |
| 841 | }) | |
| 842 | local Mesh = AddInstance("SpecialMesh",{
| |
| 843 | Parent = Reaper, | |
| 844 | MeshId = "rbxassetid://0", | |
| 845 | TextureId = "rbxassetid://0", | |
| 846 | Scale = Vector3.new(0.85,0.85,0.85), | |
| 847 | VertexColor = Vector3.new(1, 1, 1), | |
| 848 | }) | |
| 849 | ||
| 850 | ------------------------------------------------------- | |
| 851 | IT = Instance.new | |
| 852 | CF = CFrame.new | |
| 853 | VT = Vector3.new | |
| 854 | RAD = math.rad | |
| 855 | C3 = Color3.new | |
| 856 | UD2 = UDim2.new | |
| 857 | BRICKC = BrickColor.new | |
| 858 | ANGLES = CFrame.Angles | |
| 859 | EULER = CFrame.fromEulerAnglesXYZ | |
| 860 | COS = math.cos | |
| 861 | ACOS = math.acos | |
| 862 | SIN = math.sin | |
| 863 | ASIN = math.asin | |
| 864 | ABS = math.abs | |
| 865 | MRANDOM = math.random | |
| 866 | FLOOR = math.floor | |
| 867 | ||
| 868 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 869 | local label = IT("TextLabel")
| |
| 870 | label.BackgroundTransparency = 1 | |
| 871 | label.Size = UD2(1, 0, 1, 0) | |
| 872 | label.Position = UD2(0, 0, 0, 0) | |
| 873 | label.TextColor3 = TEXTCOLOR | |
| 874 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 875 | label.TextTransparency = TRANSPARENCY | |
| 876 | label.FontSize = TEXTFONTSIZE | |
| 877 | label.Font = TEXTFONT | |
| 878 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 879 | label.TextScaled = false | |
| 880 | label.Text = TEXT | |
| 881 | label.Name = NAME | |
| 882 | label.Parent = PARENT | |
| 883 | return label | |
| 884 | end | |
| 885 | ||
| 886 | function chatfunc(text) | |
| 887 | local chat = coroutine.wrap(function() | |
| 888 | if char:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 889 | char:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 890 | end | |
| 891 | local Bill = Instance.new("BillboardGui",char)
| |
| 892 | Bill.Size = UDim2.new(0,100,0,40) | |
| 893 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 894 | Bill.Adornee = char.Head | |
| 895 | Bill.Name = "TalkingBillBoard" | |
| 896 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 897 | Hehe.BackgroundTransparency = 1 | |
| 898 | Hehe.BorderSizePixel = 0 | |
| 899 | Hehe.Text = "" | |
| 900 | Hehe.Font = "Bodoni" | |
| 901 | Hehe.TextSize = 40 | |
| 902 | Hehe.TextStrokeTransparency = 0 | |
| 903 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 904 | coroutine.resume(coroutine.create(function() | |
| 905 | while Hehe ~= nil do | |
| 906 | swait() | |
| 907 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 908 | Hehe.Rotation = math.random(-5,5) | |
| 909 | Hehe.TextColor3 = Color3.new(220, 188, 129) | |
| 910 | Hehe.TextStrokeColor3 = Color3.new(220, 188, 129) | |
| 911 | end | |
| 912 | end)) | |
| 913 | for i = 1,string.len(text),1 do | |
| 914 | swait() | |
| 915 | Hehe.Text = string.sub(text,1,i) | |
| 916 | end | |
| 917 | swait(90)--Re[math.random(1, 93)] | |
| 918 | for i = 0, 1, .025 do | |
| 919 | swait() | |
| 920 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 921 | Hehe.TextStrokeTransparency = i | |
| 922 | Hehe.TextTransparency = i | |
| 923 | end | |
| 924 | Bill:Destroy() | |
| 925 | end) | |
| 926 | chat() | |
| 927 | end | |
| 928 | ||
| 929 | function onChatted(msg) | |
| 930 | chatfunc(msg) | |
| 931 | end | |
| 932 | ||
| 933 | Player.Chatted:connect(onChatted) | |
| 934 | ||
| 935 | for i,v in pairs(char:GetChildren()) do | |
| 936 | - | if v:IsA("Shirt") or v:IsA("Hat") then
|
| 936 | + | if v:IsA("Hat") then
|
| 937 | v:Destroy() | |
| 938 | end | |
| 939 | end | |
| 940 | ||
| 941 | - | local ab = Instance.new("Decal")
|
| 941 | + | |
| 942 | - | ab.Parent = char.UpperTorso |
| 942 | + | |
| 943 | - | ab.Texture = "http://www.roblox.com/asset/?id=200264388" |
| 943 | + | |
| 944 | end | |
| 945 | end | |
| 946 | local shirt = Instance.new("Shirt",char)
| |
| 947 | shirt.ShirtTemplate = "rbxassetid://63495743" | |
| 948 | local pants = Instance.new("Pants",char)
| |
| 949 | pants.PantsTemplate = "rbxassetid://55034555" | |
| 950 | local BC = char["Body Colors"] | |
| 951 | BC.HeadColor = BrickColor.new("Earth orange")
| |
| 952 | BC.LeftArmColor = BrickColor.new("Earth orange")
| |
| 953 | BC.LeftLegColor = BrickColor.new("Earth orange")
| |
| 954 | BC.RightArmColor = BrickColor.new("Earth orange")
| |
| 955 | BC.RightLegColor = BrickColor.new("Earth orange")
| |
| 956 | BC.TorsoColor = BrickColor.new("Earth orange")
| |
| 957 | ||
| 958 | - | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 480.5, 0), |
| 958 | + | |
| 959 | Parent = hed, | |
| 960 | CFrame = hed.CFrame, | |
| 961 | formFactor = "Symmetric", | |
| 962 | Size = Vector3.new(1, 1, 1), | |
| 963 | - | MeshId = "rbxassetid://553688034", |
| 963 | + | |
| 964 | - | TextureId = "rbxassetid://869796655", |
| 964 | + | |
| 965 | - | Scale = Vector3.new(2,2,2), |
| 965 | + | |
| 966 | Locked = true, | |
| 967 | }) | |
| 968 | local Weld = AddInstance("Weld",{
| |
| 969 | Parent = Hair, | |
| 970 | Part0 = hed, | |
| 971 | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), | |
| 972 | Part1 = Hair, | |
| 973 | }) | |
| 974 | local Mesh = AddInstance("SpecialMesh",{
| |
| 975 | Parent = Hair, | |
| 976 | MeshId = "rbxassetid://3163060246", | |
| 977 | TextureId = "rbxassetid://3163060426", | |
| 978 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
| 979 | VertexColor = Vector3.new(1, 1, 1), | |
| 980 | }) | |
| 981 | ||
| 982 | ||
| 983 | swait() | |
| 984 | plr = game.Players.LocalPlayer | |
| 985 | char = plr.Character | |
| 986 | mouse = plr:GetMouse() | |
| 987 | whitecolor = Color3.new(220, 188, 129) | |
| 988 | epicmode = false | |
| 989 | normal = true | |
| 990 | for i,v in pairs(char:GetChildren()) do | |
| 991 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 992 | v:Destroy() | |
| 993 | end | |
| 994 | end | |
| 995 | ||
| 996 | cam = game.Workspace.CurrentCamera | |
| 997 | CF = CFrame.new | |
| 998 | angles = CFrame.Angles | |
| 999 | attack = false | |
| 1000 | Euler = CFrame.fromEulerAnglesXYZ | |
| 1001 | Rad = math.rad | |
| 1002 | IT = Instance.new | |
| 1003 | BrickC = BrickColor.new | |
| 1004 | - | id = 1713855118 |
| 1004 | + | |
| 1005 | Acos = math.acos | |
| 1006 | Sin = math.sin | |
| 1007 | Asin = math.asin | |
| 1008 | Abs = math.abs | |
| 1009 | Mrandom = math.random | |
| 1010 | Floor = math.floor | |
| 1011 | ||
| 1012 | themee = Instance.new("Sound", Head)
| |
| 1013 | themee.Volume = 1 | |
| 1014 | themee.Name = "themee" | |
| 1015 | themee.Looped = true | |
| 1016 | ||
| 1017 | id = 3188394654 | |
| 1018 | themee.SoundId = "rbxassetid://"..id | |
| 1019 | themee:Play() | |
| 1020 | ||
| 1021 | ||
| 1022 | ||
| 1023 | function Eviscerate(dude) | |
| 1024 | if dude.Name ~= char then | |
| 1025 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1026 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1027 | local val = IT("BoolValue", dude)
| |
| 1028 | val.Name = "IsHit" | |
| 1029 | local ds = coroutine.wrap(function() | |
| 1030 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1031 | wait(0.5) | |
| 1032 | target = nil | |
| 1033 | coroutine.resume(coroutine.create(function() | |
| 1034 | for i, v in pairs(dude:GetChildren()) do | |
| 1035 | if v:IsA("Accessory") then
| |
| 1036 | v:Destroy() | |
| 1037 | end | |
| 1038 | if v:IsA("Humanoid") then
| |
| 1039 | v:Destroy() | |
| 1040 | end | |
| 1041 | if v:IsA("charMesh") then
| |
| 1042 | v:Destroy() | |
| 1043 | end | |
| 1044 | if v:IsA("Model") then
| |
| 1045 | v:Destroy() | |
| 1046 | end | |
| 1047 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1048 | for x, o in pairs(v:GetChildren()) do | |
| 1049 | if o:IsA("Decal") then
| |
| 1050 | o:Destroy() | |
| 1051 | end | |
| 1052 | end | |
| 1053 | coroutine.resume(coroutine.create(function() | |
| 1054 | v.Material = "Neon" | |
| 1055 | v.CanCollide = false | |
| 1056 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1057 | PartEmmit1.LightEmission = 1 | |
| 1058 | PartEmmit1.Texture = "rbxassetid://243160943" | |
| 1059 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1060 | PartEmmit1.Rate = 150 | |
| 1061 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1062 | PartEmmit1.Size = NumberSequence.new({
| |
| 1063 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1064 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1065 | }) | |
| 1066 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1067 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1068 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1069 | }) | |
| 1070 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1071 | PartEmmit1.VelocitySpread = 30000 | |
| 1072 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1073 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1074 | local BodPoss = IT("BodyPosition", v)
| |
| 1075 | BodPoss.P = 3000 | |
| 1076 | BodPoss.D = 1000 | |
| 1077 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1078 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1079 | v.Color = maincolor.Color | |
| 1080 | coroutine.resume(coroutine.create(function() | |
| 1081 | for i = 0, 49 do | |
| 1082 | swait(1) | |
| 1083 | v.Transparency = v.Transparency + 0.08 | |
| 1084 | end | |
| 1085 | wait(0.5) | |
| 1086 | PartEmmit1.Enabled = false | |
| 1087 | wait(3) | |
| 1088 | v:Destroy() | |
| 1089 | dude:Destroy() | |
| 1090 | end)) | |
| 1091 | end)) | |
| 1092 | end | |
| 1093 | end | |
| 1094 | end)) | |
| 1095 | end) | |
| 1096 | ds() | |
| 1097 | end | |
| 1098 | end | |
| 1099 | ||
| 1100 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1101 | if SinglePlayer then | |
| 1102 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1103 | end | |
| 1104 | local List = {}
| |
| 1105 | for i, v in pairs(workspace:GetChildren()) do | |
| 1106 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1107 | table.insert(List, v) | |
| 1108 | end | |
| 1109 | end | |
| 1110 | return List | |
| 1111 | end | |
| 1112 | ||
| 1113 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 1114 | local type = type | |
| 1115 | local rng = Instance.new("Part", char)
| |
| 1116 | rng.Anchored = true | |
| 1117 | rng.BrickColor = color | |
| 1118 | rng.CanCollide = false | |
| 1119 | rng.FormFactor = 3 | |
| 1120 | rng.Name = "Ring" | |
| 1121 | rng.Material = "Neon" | |
| 1122 | rng.Size = Vector3.new(1, 1, 1) | |
| 1123 | rng.Transparency = 0 | |
| 1124 | rng.TopSurface = 0 | |
| 1125 | rng.BottomSurface = 0 | |
| 1126 | rng.CFrame = pos | |
| 1127 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1128 | rngm.MeshType = MType | |
| 1129 | rngm.Scale = scale | |
| 1130 | local scaler2 = 1 | |
| 1131 | if type == "Add" then | |
| 1132 | scaler2 = 1 * value | |
| 1133 | elseif type == "Divide" then | |
| 1134 | scaler2 = 1 / value | |
| 1135 | end | |
| 1136 | coroutine.resume(coroutine.create(function() | |
| 1137 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1138 | swait() | |
| 1139 | if type == "Add" then | |
| 1140 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1141 | elseif type == "Divide" then | |
| 1142 | - | Cso("2220756150", hed, 10, 1.1)
|
| 1142 | + | |
| 1143 | - | Cso("2847401943", hed, 10, 1.1)
|
| 1143 | + | |
| 1144 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1145 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1146 | end | |
| 1147 | rng:Destroy() | |
| 1148 | end)) | |
| 1149 | end | |
| 1150 | function Ban() | |
| 1151 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(123, 46, 47), 1, maincolor, "Sphere") | |
| 1152 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(27, 42, 53), 2, maincolor, "Sphere") | |
| 1153 | Magic(1, "Add", mouse.Hit, Vector3.new(1000, 1000, 1000), 0.5, maincolor, "Sphere") | |
| 1154 | Magic(1, "Add", mouse.Hit, Vector3.new(1000, 1000, 1000), 0.75, maincolor, "Sphere") | |
| 1155 | Cso("535690488", hed, 10, 1.1)
| |
| 1156 | Cso("3362346832", hed, 10, 1.1)
| |
| 1157 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
| 1158 | if v:FindFirstChild("Head") then
| |
| 1159 | Eviscerate(v) | |
| 1160 | end | |
| 1161 | end | |
| 1162 | end | |
| 1163 | ||
| 1164 | mouse.Button1Down:connect(function(key) | |
| 1165 | if attack == false then | |
| 1166 | Ban() | |
| 1167 | end | |
| 1168 | end) | |
| 1169 | ||
| 1170 | local aura = Instance.new("ParticleEmitter", bem)
| |
| 1171 | aura.Size = NumberSequence.new(11) | |
| 1172 | aura.Lifetime = NumberRange.new(0.5) | |
| 1173 | aura.LightEmission = 1 | |
| 1174 | aura.Texture = "http://www.roblox.com/asset/?id=" | |
| 1175 | aura.Speed = NumberRange.new(0) | |
| 1176 | aura.Color = ColorSequence.new(Color3.new(225, 225, 0)) | |
| 1177 | aura.Rate = 400 | |
| 1178 | ----------------------------------------------- | |
| 1179 | - | id = 2979417135 |
| 1179 | + | |
| 1180 | mouse.KeyDown:connect(function(Press) | |
| 1181 | Press=Press:lower() | |
| 1182 | - | tecks2.Text = "I'l show you the true power of teapot" |
| 1182 | + | |
| 1183 | - | wait(2) |
| 1183 | + | |
| 1184 | themee.SoundId = "rbxassetid://"..id | |
| 1185 | - | wait() |
| 1185 | + | |
| 1186 | - | tecks2.Text = "Are you ready?" |
| 1186 | + | |
| 1187 | - | wait(3) |
| 1187 | + | |
| 1188 | ||
| 1189 | - | wait() |
| 1189 | + | |
| 1190 | - | hum.WalkSpeed = 50 |
| 1190 | + | |
| 1191 | - | hum.JumpPower = 100 |
| 1191 | + | |
| 1192 | - | local l = game.Lighting |
| 1192 | + | id = 649734792 |
| 1193 | - | tecks2.Text = "Balanced Teapot" |
| 1193 | + | |
| 1194 | - | ab:Destroy() |
| 1194 | + | |
| 1195 | end | |
| 1196 | end) | |
| 1197 | ||
| 1198 | mouse.KeyDown:connect(function(Press) | |
| 1199 | Press=Press:lower() | |
| 1200 | - | local Aura = Instance.new("ParticleEmitter")
|
| 1200 | + | |
| 1201 | - | Aura.Name = "Aura" |
| 1201 | + | id = 2013779972 |
| 1202 | - | Aura.Texture = "rbxassetid://1035402677" |
| 1202 | + | |
| 1203 | - | Aura.Parent = UpperTorso |
| 1203 | + | |
| 1204 | - | Aura.LightEmission = 0.7 |
| 1204 | + | |
| 1205 | - | Aura.Transparency = NumberSequence.new(0.3, 1) |
| 1205 | + | |
| 1206 | - | Aura.Color = ColorSequence.new(BrickColor.new("Bright reddish violet").Color)
|
| 1206 | + | |
| 1207 | - | Aura.Size = NumberSequence.new(0.7, 11) |
| 1207 | + | |
| 1208 | - | Aura.LockedToPart = true |
| 1208 | + | |
| 1209 | - | Aura.Lifetime = NumberRange.new(1.5) |
| 1209 | + | if Press=='v' then |
| 1210 | - | Aura.Rate = 50 |
| 1210 | + | id = 3188394654 |
| 1211 | - | Aura.Speed = NumberRange.new(1.3) |
| 1211 | + | |
| 1212 | - | Aura.EmissionDirection = "Top" |
| 1212 | + | |
| 1213 | - | Aura.Rotation = NumberRange.new(-8, 8) |
| 1213 | + | |
| 1214 | end) | |
| 1215 | ||
| 1216 | mouse.KeyDown:connect(function(Press) | |
| 1217 | Press=Press:lower() | |
| 1218 | if Press=='f' then | |
| 1219 | Cso("975173739", hed, 10, 1.1)
| |
| 1220 | dist = (tors.Position - mouse.Hit.p).magnitude | |
| 1221 | if dist <= 10000 then | |
| 1222 | tors.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) | |
| 1223 | end | |
| 1224 | end | |
| 1225 | end) |