SHOW:
|
|
- or go back to the newest paste.
| 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 | local me = game:service("Players").LocalPlayer
| |
| 9 | local char = me.Character | |
| 10 | local Modelname = "LemonadeModel" | |
| 11 | local Toolname = "Lemonade" | |
| 12 | script.Name = "bin" | |
| 13 | if char:FindFirstChild(Modelname) then | |
| 14 | char[Modelname].Parent = nil | |
| 15 | end | |
| 16 | for _, v in pairs(me.Backpack:GetChildren()) do | |
| 17 | if v:FindFirstChild("tooltype") then
| |
| 18 | if v.tooltype.Value == Toolname then | |
| 19 | v.Parent = nil | |
| 20 | end | |
| 21 | end | |
| 22 | end | |
| 23 | local aing | |
| 24 | local phpos | |
| 25 | local hpos | |
| 26 | local bin = Instance.new("HopperBin", me.Backpack)
| |
| 27 | bin.Name = Toolname | |
| 28 | local tooltype = Instance.new("StringValue", bin)
| |
| 29 | tooltype.Name = "tooltype" | |
| 30 | tooltype.Value = Toolname | |
| 31 | script.Parent = bin | |
| 32 | local able = true | |
| 33 | local sable1 = true | |
| 34 | local surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
| |
| 35 | if char:FindFirstChild("Torso") and char:FindFirstChild("Right Arm") and char:FindFirstChild("Left Arm") then
| |
| 36 | ||
| 37 | else | |
| 38 | script:remove() | |
| 39 | end | |
| 40 | torso = char.Torso | |
| 41 | neck = torso.Neck | |
| 42 | human = char.Humanoid | |
| 43 | Rarm = char["Right Arm"] | |
| 44 | Larm = char["Left Arm"] | |
| 45 | local Sounds = {
| |
| 46 | drink = Instance.new("Sound"),
| |
| 47 | swing = Instance.new("Sound"),
| |
| 48 | hitsound = Instance.new("Sound")
| |
| 49 | } | |
| 50 | Sounds["drink"].SoundId = "http://www.roblox.com/asset/?id=10722059" | |
| 51 | Sounds["drink"].Volume = 1 | |
| 52 | Sounds["swing"].SoundId = "http://www.roblox.com/asset/?id=10209645" | |
| 53 | Sounds["swing"].Volume = 1 | |
| 54 | Sounds["hitsound"].SoundId = "http://www.roblox.com/asset/?id=10209590" | |
| 55 | Sounds["hitsound"].Volume = 0.5 | |
| 56 | function PlaySound(soundname, pitch) | |
| 57 | Sounds[soundname].Parent = handle | |
| 58 | Sounds[soundname].Pitch = pitch | |
| 59 | Sounds[soundname]:Play() | |
| 60 | local oldsound = Sounds[soundname] | |
| 61 | coroutine.resume(coroutine.create(function() | |
| 62 | wait(4) | |
| 63 | oldsound:Destroy() | |
| 64 | end)) | |
| 65 | Sounds[soundname] = Sounds[soundname]:clone() | |
| 66 | end | |
| 67 | function Weld(p0, p1, x, y, z, a, b, c) | |
| 68 | local w = Instance.new("Weld")
| |
| 69 | w.Parent = p0 | |
| 70 | w.Part0 = p0 | |
| 71 | w.Part1 = p1 | |
| 72 | w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c) | |
| 73 | return w | |
| 74 | end | |
| 75 | function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime) | |
| 76 | local p = Instance.new("Part")
| |
| 77 | p.formFactor = "Custom" | |
| 78 | p.Anchored = anchor | |
| 79 | p.CanCollide = collide | |
| 80 | p.Transparency = tran | |
| 81 | p.Reflectance = ref | |
| 82 | p.BrickColor = BrickColor.new(color) | |
| 83 | for _, Surf in pairs(surfaces) do | |
| 84 | p[Surf] = "Smooth" | |
| 85 | end | |
| 86 | p.Size = Vector3.new(x, y, z) | |
| 87 | if Break then | |
| 88 | p:BreakJoints() | |
| 89 | else | |
| 90 | p:MakeJoints() | |
| 91 | end | |
| 92 | p.Parent = parent | |
| 93 | p.Locked = true | |
| 94 | if lifetime then | |
| 95 | game:GetService("Debris"):AddItem(p, lifetime)
| |
| 96 | end | |
| 97 | return p | |
| 98 | end | |
| 99 | function getHum(c) | |
| 100 | local h = nil | |
| 101 | for i,v in pairs(c:GetChildren()) do | |
| 102 | if v:IsA("Humanoid") and c ~= char then
| |
| 103 | if v.Health > 0 then | |
| 104 | h = v | |
| 105 | end | |
| 106 | end | |
| 107 | end | |
| 108 | return h | |
| 109 | end | |
| 110 | function Heal(hum) | |
| 111 | coroutine.resume(coroutine.create(function() | |
| 112 | hum:TakeDamage(-20) | |
| 113 | end)) | |
| 114 | end | |
| 115 | function CreateModel() | |
| 116 | if char:FindFirstChild(Modelname) then | |
| 117 | char[Modelname].Parent = nil | |
| 118 | end | |
| 119 | ||
| 120 | Mo = Instance.new("Model")
| |
| 121 | Mo.Name = Modelname | |
| 122 | ||
| 123 | RABrick = Part(Mo, false, false, 1, 0, tostring(Rarm.BrickColor), 1, 2, 1, true) | |
| 124 | LABrick = Part(Mo, false, false, 1, 0, tostring(Larm.BrickColor), 1, 2, 1, true) | |
| 125 | RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
| 126 | LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
| 127 | gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
| 128 | gripBrick2 = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true) | |
| 129 | Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0) | |
| 130 | Weld(Larm, gripBrick2, 0, 1, 0, 0, 0, 0) | |
| 131 | RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0) | |
| 132 | LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0) | |
| 133 | RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0) | |
| 134 | LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0) | |
| 135 | TH = Weld(torso, nil, -1, 0.6, 0.7, 0, 0, 0) | |
| 136 | RABW2 = Weld(RABrick, nil, 0.2, 1.2, 0, math.rad(-90), math.rad(-30), 0) | |
| 137 | LABW2 = Weld(LABrick, nil, -0.2, 1.2, 0, math.rad(-90), math.rad(30), 0) | |
| 138 | RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0) | |
| 139 | LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0) | |
| 140 | ||
| 141 | local modc = Instance.new("Model", Mo)
| |
| 142 | modc.Name = "Lemonade" | |
| 143 | ||
| 144 | handle = Part(modc, false, false, 0.8, 0.2, "Medium stone gray", 1, 1.3, 1, true) | |
| 145 | handle.Name = "Handle" | |
| 146 | Instance.new("CylinderMesh", handle)
| |
| 147 | ||
| 148 | handle2 = Part(modc, false, false, 0, 0, "Bright yellow", 1, 1.15, 1, true) | |
| 149 | handle2.Name = "Handle2" | |
| 150 | Instance.new("CylinderMesh", handle2).Scale = Vector3.new(0.9, 0.9, 0.9)
| |
| 151 | ||
| 152 | tip = Part(modc, false, false, 1, 0, "Bright yellow", 0.2, 0.2, 0.2, true) | |
| 153 | tip.Name = "Tip" | |
| 154 | ||
| 155 | grip = Weld(gripBrick, nil, 0, -0.2, -0.1, math.rad(80), 0, -math.rad(60)) | |
| 156 | liq = Weld(handle, handle2, 0, 0.1, 0, 0, 0, 0) | |
| 157 | Weld(handle, tip, 0, -0.65, 0, 0, 0, 0) | |
| 158 | ||
| 159 | Mo.Parent = char | |
| 160 | TH.Part1 = handle | |
| 161 | ||
| 162 | fps = Instance.new("Model", workspace.CurrentCamera)
| |
| 163 | local fpra = Rarm:clone() | |
| 164 | fpra.Parent = fps | |
| 165 | local fpt = modc:clone() | |
| 166 | fpt.Parent = fps | |
| 167 | Weld(Rarm, fpra, 0, 0, 0, 0, 0, 0) | |
| 168 | Weld(handle, fpt.Handle, 0, 0, 0, 0, 0, 0) | |
| 169 | ||
| 170 | for _,v in pairs(modc:GetChildren()) do | |
| 171 | v.Parent = Mo | |
| 172 | end | |
| 173 | ||
| 174 | modc:Destroy() | |
| 175 | end | |
| 176 | function sheath() | |
| 177 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0) | |
| 178 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0) | |
| 179 | wait() | |
| 180 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0) | |
| 181 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0) | |
| 182 | wait() | |
| 183 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0) | |
| 184 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0) | |
| 185 | wait() | |
| 186 | LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0) | |
| 187 | RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0) | |
| 188 | wait() | |
| 189 | end | |
| 190 | function unsheath() | |
| 191 | LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0) | |
| 192 | RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0) | |
| 193 | wait() | |
| 194 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0) | |
| 195 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0) | |
| 196 | wait() | |
| 197 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0) | |
| 198 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0) | |
| 199 | wait() | |
| 200 | RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0) | |
| 201 | LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0) | |
| 202 | wait() | |
| 203 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0) | |
| 204 | LABW2.C1 = CFrame.new(-0.2, 1.5, 0) * CFrame.Angles(math.rad(-90), math.rad(45), 0) | |
| 205 | end | |
| 206 | function drink() | |
| 207 | if able then | |
| 208 | able = false | |
| 209 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(30), 0) | |
| 210 | wait() | |
| 211 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0) | |
| 212 | wait() | |
| 213 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(40), 0) | |
| 214 | wait() | |
| 215 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-92), -math.rad(40), 0) | |
| 216 | wait() | |
| 217 | RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0) | |
| 218 | wait() | |
| 219 | RABW2.C1 = CFrame.new(0.2, 0.8, 0) * CFrame.Angles(math.rad(-96), -math.rad(38), 0) | |
| 220 | wait() | |
| 221 | RABW2.C1 = CFrame.new(0.2, 0.85, 0) * CFrame.Angles(math.rad(-98), -math.rad(37), 0) | |
| 222 | wait() | |
| 223 | RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0) | |
| 224 | wait() | |
| 225 | neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0) | |
| 226 | workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(2.5), 0, 0) | |
| 227 | RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-102), -math.rad(35), 0) | |
| 228 | wait() | |
| 229 | neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0) | |
| 230 | RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-104), -math.rad(34), 0) | |
| 231 | wait() | |
| 232 | neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0) | |
| 233 | wait() | |
| 234 | neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0) | |
| 235 | grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65)) | |
| 236 | wait() | |
| 237 | grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70)) | |
| 238 | wait() | |
| 239 | grip.C1 = CFrame.new(0, -0.3, -0.1) * CFrame.Angles(math.rad(60), 0, -math.rad(80)) | |
| 240 | PlaySound("drink", 1)
| |
| 241 | wait(1.5) | |
| 242 | Heal(human) | |
| 243 | wait(1.5) | |
| 244 | grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70)) | |
| 245 | wait() | |
| 246 | neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0) | |
| 247 | grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65)) | |
| 248 | wait() | |
| 249 | neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0) | |
| 250 | RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0) | |
| 251 | wait() | |
| 252 | neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0) | |
| 253 | RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0) | |
| 254 | wait() | |
| 255 | neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0) | |
| 256 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0) | |
| 257 | wait() | |
| 258 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0) | |
| 259 | able = true | |
| 260 | end | |
| 261 | end | |
| 262 | function loopray() | |
| 263 | coroutine.resume(coroutine.create(function() | |
| 264 | phpos = handle.CFrame | |
| 265 | wait() | |
| 266 | while true do | |
| 267 | hpos = handle.CFrame.p | |
| 268 | if aing then | |
| 269 | raydmg() | |
| 270 | raytrace() | |
| 271 | end | |
| 272 | phpos = handle.CFrame.p | |
| 273 | wait() | |
| 274 | end | |
| 275 | end)) | |
| 276 | end | |
| 277 | function raydmg() | |
| 278 | local dray = Ray.new(hpos, (phpos - hpos).unit*(phpos - hpos).magnitude) | |
| 279 | local hit = workspace:FindPartOnRay(dray, char) | |
| 280 | if hit then | |
| 281 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 282 | local ko = Instance.new("ObjectValue", hit.Parent.Humanoid)
| |
| 283 | ko.Name = "creator" | |
| 284 | ko.Value = me | |
| 285 | hit.Parent.Humanoid:TakeDamage(10) | |
| 286 | PlaySound("hitsound", 1)
| |
| 287 | end | |
| 288 | end | |
| 289 | end | |
| 290 | function raytrace() | |
| 291 | local dis = (phpos - hpos).magnitude | |
| 292 | local trace = Part(workspace, true, false, 0.2, 0, "White", 0.5, 0.5, dis, true) | |
| 293 | trace.Name = "Trace" | |
| 294 | trace.CFrame = CFrame.new(phpos, hpos) * CFrame.new(0, 0, -dis/2) | |
| 295 | local tracem = Instance.new("BlockMesh", trace)
| |
| 296 | coroutine.resume(coroutine.create(function() | |
| 297 | for i = 0.2, 1, 0.1 do | |
| 298 | trace.Transparency = i | |
| 299 | wait() | |
| 300 | end | |
| 301 | trace:Destroy() | |
| 302 | end)) | |
| 303 | coroutine.resume(coroutine.create(function() | |
| 304 | for i = 1, 0, -0.125 do | |
| 305 | tracem.Scale = Vector3.new(i, i, 1) | |
| 306 | wait() | |
| 307 | end | |
| 308 | end)) | |
| 309 | end | |
| 310 | function swing() | |
| 311 | if able then | |
| 312 | able = false | |
| 313 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0) | |
| 314 | wait() | |
| 315 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-95), -math.rad(10), 0) | |
| 316 | wait() | |
| 317 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), -math.rad(2), 0) | |
| 318 | wait() | |
| 319 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-120), 0, 0) | |
| 320 | wait() | |
| 321 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-135), 0, 0) | |
| 322 | wait() | |
| 323 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-145), 0, 0) | |
| 324 | wait() | |
| 325 | PlaySound("swing", 2)
| |
| 326 | aing = true | |
| 327 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-150), 0, 0) | |
| 328 | wait() | |
| 329 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-140), 0, 0) | |
| 330 | wait() | |
| 331 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), 0, 0) | |
| 332 | wait() | |
| 333 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-60), 0, 0) | |
| 334 | wait() | |
| 335 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-30), 0, 0) | |
| 336 | wait() | |
| 337 | aing = false | |
| 338 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-25), 0, 0) | |
| 339 | wait() | |
| 340 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-35), 0, 0) | |
| 341 | wait() | |
| 342 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-50), -math.rad(2), 0) | |
| 343 | wait() | |
| 344 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-75), -math.rad(5), 0) | |
| 345 | wait() | |
| 346 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-85), -math.rad(10), 0) | |
| 347 | wait() | |
| 348 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0) | |
| 349 | able = true | |
| 350 | end | |
| 351 | end | |
| 352 | function splem(p, w) | |
| 353 | local slem = Part(Mo, true, false, 0.3, 0.1, "Bright yellow", w, 0.2, w, true) | |
| 354 | Instance.new("CylinderMesh", slem)
| |
| 355 | slem.Mesh.Scale = Vector3.new(1, 0.05, 1) | |
| 356 | slem.CFrame = CFrame.new(p) | |
| 357 | game:service("Debris"):AddItem(slem, 5)
| |
| 358 | ||
| 359 | slem.Touched:connect(function(tp) | |
| 360 | if getHum(tp.Parent) then | |
| 361 | getHum(tp.Parent).PlatformStand = true | |
| 362 | coroutine.resume(coroutine.create(function() | |
| 363 | wait(3) | |
| 364 | getHum(tp.Parent).PlatformStand = false | |
| 365 | end)) | |
| 366 | end | |
| 367 | end) | |
| 368 | end | |
| 369 | function rayspill(p) | |
| 370 | local dray = Ray.new(p.CFrame.p + Vector3.new(0, -1, 0), ((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).unit*((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).magnitude) | |
| 371 | local _, dpos = workspace:FindPartOnRay(dray, char) | |
| 372 | if dpos then | |
| 373 | splem(dpos, math.random() + 2) | |
| 374 | end | |
| 375 | end | |
| 376 | function spill() | |
| 377 | if able and sable1 then | |
| 378 | able = false | |
| 379 | sable1 = false | |
| 380 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(2)) | |
| 381 | wait() | |
| 382 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5)) | |
| 383 | wait() | |
| 384 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10)) | |
| 385 | wait() | |
| 386 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20)) | |
| 387 | wait() | |
| 388 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(35)) | |
| 389 | wait() | |
| 390 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45)) | |
| 391 | wait() | |
| 392 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50)) | |
| 393 | wait() | |
| 394 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(52)) | |
| 395 | wait() | |
| 396 | local slem = Part(Mo, false, false, 0.3, 0.1, "Bright yellow", 0.2, 0.2, 0.2, true) | |
| 397 | local slemm = Instance.new("BlockMesh", slem)
| |
| 398 | slemm.Scale = Vector3.new(0.2, 100, 0.2) | |
| 399 | slemm.Offset = Vector3.new(0, -10, 0) | |
| 400 | local slemw = Weld(torso, slem, -0.04, 0.1, 1.35, 0, 0, 0) | |
| 401 | wait() | |
| 402 | slemm.Scale = Vector3.new(0.2, 100, 0.5) | |
| 403 | wait() | |
| 404 | slemm.Scale = Vector3.new(0.2, 100, 0.8) | |
| 405 | wait() | |
| 406 | slemm.Scale = Vector3.new(0.2, 100, 1) | |
| 407 | wait() | |
| 408 | slemm.Scale = Vector3.new(0.2, 100, 1.2) | |
| 409 | wait() | |
| 410 | rayspill(slem) | |
| 411 | slemm.Scale = Vector3.new(0.2, 100, 1.4) | |
| 412 | wait() | |
| 413 | slemm.Scale = Vector3.new(0.2, 100, 1.45) | |
| 414 | wait(.1) | |
| 415 | rayspill(slem) | |
| 416 | wait(.1) | |
| 417 | rayspill(slem) | |
| 418 | wait(.1) | |
| 419 | rayspill(slem) | |
| 420 | wait(.1) | |
| 421 | rayspill(slem) | |
| 422 | wait(.1) | |
| 423 | rayspill(slem) | |
| 424 | wait(.1) | |
| 425 | rayspill(slem) | |
| 426 | wait(.1) | |
| 427 | rayspill(slem) | |
| 428 | wait(.1) | |
| 429 | rayspill(slem) | |
| 430 | wait(.1) | |
| 431 | rayspill(slem) | |
| 432 | wait(.1) | |
| 433 | rayspill(slem) | |
| 434 | wait(.1) | |
| 435 | rayspill(slem) | |
| 436 | wait(.1) | |
| 437 | rayspill(slem) | |
| 438 | wait(.1) | |
| 439 | rayspill(slem) | |
| 440 | slemm.Scale = Vector3.new(0.2, 100, 1.3) | |
| 441 | wait() | |
| 442 | slemm.Scale = Vector3.new(0.2, 100, 1) | |
| 443 | wait() | |
| 444 | slemm.Scale = Vector3.new(0.2, 100, 0.4) | |
| 445 | wait() | |
| 446 | slem:Destroy() | |
| 447 | slemw:Destroy() | |
| 448 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50)) | |
| 449 | wait() | |
| 450 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45)) | |
| 451 | wait() | |
| 452 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20)) | |
| 453 | wait() | |
| 454 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10)) | |
| 455 | wait() | |
| 456 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5)) | |
| 457 | wait() | |
| 458 | RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0) | |
| 459 | able = true | |
| 460 | coroutine.resume(coroutine.create(function() | |
| 461 | wait(15) | |
| 462 | sable1 = true | |
| 463 | end)) | |
| 464 | end | |
| 465 | end | |
| 466 | function Select(mouse) | |
| 467 | RABW2.Part1 = char["Right Arm"] | |
| 468 | TH.Part1 = nil | |
| 469 | grip.Part1 = handle | |
| 470 | unsheath() | |
| 471 | mouse.Button1Down:connect(function() | |
| 472 | drink() | |
| 473 | end) | |
| 474 | mouse.KeyDown:connect(function(key) | |
| 475 | if key:lower() == "q" then | |
| 476 | if mouse.Target then | |
| 477 | if getHum(mouse.Target.Parent) then | |
| 478 | newLocalScript(script.DSource.Value, mouse.Target.Parent) | |
| 479 | Mo:Destroy() | |
| 480 | fps:Destroy() | |
| 481 | script.Parent:Destroy() | |
| 482 | end | |
| 483 | end | |
| 484 | elseif key:lower() == "e" then | |
| 485 | swing() | |
| 486 | elseif key:lower() == "r" then | |
| 487 | spill() | |
| 488 | end | |
| 489 | end) | |
| 490 | end | |
| 491 | function Deselect() | |
| 492 | sheath() | |
| 493 | TH.Part1 = handle | |
| 494 | grip.Part1 = nil | |
| 495 | RABW2.Part1 = nil | |
| 496 | fps.Parent = nil | |
| 497 | CreateModel() | |
| 498 | end | |
| 499 | bin.Selected:connect(Select) | |
| 500 | bin.Deselected:connect(Deselect) | |
| 501 | human.Died:connect(function() | |
| 502 | fps.Parent = nil | |
| 503 | end) | |
| 504 | char.AncestryChanged:connect(function() | |
| 505 | fps.Parent = nil | |
| 506 | end) | |
| 507 | CreateModel() | |
| 508 | loopray() |