Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- ScreenGui3 = Instance.new("ScreenGui")
- Frame4 = Instance.new("Frame")
- ImageLabel5 = Instance.new("ImageLabel")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- Script8 = Instance.new("Script")
- Sound9 = Instance.new("Sound")
- ImageLabel10 = Instance.new("ImageLabel")
- Script11 = Instance.new("Script")
- Script12 = Instance.new("Script")
- Sound13 = Instance.new("Sound")
- Part14 = Instance.new("Part")
- Motor6D15 = Instance.new("Motor6D")
- Motor6D16 = Instance.new("Motor6D")
- Motor6D17 = Instance.new("Motor6D")
- Motor6D18 = Instance.new("Motor6D")
- Motor6D19 = Instance.new("Motor6D")
- BodyForce20 = Instance.new("BodyForce")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- Part25 = Instance.new("Part")
- SpecialMesh26 = Instance.new("SpecialMesh")
- SpotLight27 = Instance.new("SpotLight")
- Humanoid28 = Instance.new("Humanoid")
- Backpack29 = Instance.new("Backpack")
- Script30 = Instance.new("Script")
- Script31 = Instance.new("Script")
- ObjectValue32 = Instance.new("ObjectValue")
- Script33 = Instance.new("Script")
- StringValue34 = Instance.new("StringValue")
- Animation35 = Instance.new("Animation")
- StringValue36 = Instance.new("StringValue")
- Animation37 = Instance.new("Animation")
- StringValue38 = Instance.new("StringValue")
- Animation39 = Instance.new("Animation")
- NumberValue40 = Instance.new("NumberValue")
- Animation41 = Instance.new("Animation")
- NumberValue42 = Instance.new("NumberValue")
- StringValue43 = Instance.new("StringValue")
- Animation44 = Instance.new("Animation")
- StringValue45 = Instance.new("StringValue")
- Animation46 = Instance.new("Animation")
- StringValue47 = Instance.new("StringValue")
- Animation48 = Instance.new("Animation")
- StringValue49 = Instance.new("StringValue")
- Animation50 = Instance.new("Animation")
- StringValue51 = Instance.new("StringValue")
- Animation52 = Instance.new("Animation")
- Script53 = Instance.new("Script")
- Script54 = Instance.new("Script")
- Script55 = Instance.new("Script")
- Script56 = Instance.new("Script")
- Part57 = Instance.new("Part")
- Motor6D58 = Instance.new("Motor6D")
- SpecialMesh59 = Instance.new("SpecialMesh")
- Part60 = Instance.new("Part")
- BillboardGui61 = Instance.new("BillboardGui")
- ImageLabel62 = Instance.new("ImageLabel")
- Script63 = Instance.new("Script")
- Part64 = Instance.new("Part")
- Part65 = Instance.new("Part")
- Part66 = Instance.new("Part")
- BillboardGui67 = Instance.new("BillboardGui")
- ImageLabel68 = Instance.new("ImageLabel")
- Script69 = Instance.new("Script")
- Camera70 = Instance.new("Camera")
- Model0.Name = "Ignited Bonnie"
- Model0.Parent = mas
- Part1.Name = "Jumpscare Box"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-18.7641983, 3.59502602, 236.232513, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Position = Vector3.new(-18.7641983, 3.59502602, 236.232513)
- Part1.Rotation = Vector3.new(0, -90, 0)
- Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(3.43617249, 7.18966675, 3.5197773)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Earth green")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.WoodPlanks
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Earth green")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Script2.Name = "S2"
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- Popup = script.Parent.Popup
- Ready = true
- function onTouch(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil and Ready == true then
- Ready = false
- local plyr = game.Players:FindFirstChild(h.Parent.Name)
- wait()
- local c = Popup:clone()
- c.Parent = plyr.PlayerGui
- c.BackGround.Image.StuffScript.Disabled=false
- h.Health=0
- wait(1)
- wait(.1)
- c:remove()
- wait(1)
- Ready = true
- end
- end
- script.Parent.Touched:connect(onTouch)
- end))
- ScreenGui3.Name = "Popup"
- ScreenGui3.Parent = Part1
- Frame4.Name = "BackGround"
- Frame4.Parent = ScreenGui3
- Frame4.Position = UDim2.new(0, 0, -0.100000001, 0)
- Frame4.Size = UDim2.new(1.10000002, 0, 1.20000005, 0)
- Frame4.BackgroundColor = BrickColor.new("Black metallic")
- Frame4.BackgroundColor3 = Color3.new(0.109804, 0.109804, 0.109804)
- Frame4.BackgroundTransparency = 1
- ImageLabel5.Name = "Image"
- ImageLabel5.Parent = Frame4
- ImageLabel5.Position = UDim2.new(-0.200000003, -66, -0.100000001, -9)
- ImageLabel5.Rotation = 4.6521444320679
- ImageLabel5.Size = UDim2.new(1.29999995, 0, 1.29999995, 0)
- ImageLabel5.BackgroundColor = BrickColor.new("Really black")
- ImageLabel5.BackgroundColor3 = Color3.new(0, 0, 0)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "rbxassetid://940919723"
- Script6.Parent = ImageLabel5
- table.insert(cors,sandbox(Script6,function()
- while wait() do
- script.Parent.Rotation = math.sin(tick() * 50) * 10
- end
- end))
- Script7.Name = "IntroGUI Script [READ]"
- Script7.Parent = ImageLabel5
- table.insert(cors,sandbox(Script7,function()
- while true do
- script.Parent.Position = script.Parent.Position + UDim2.new(0, math.random(-100, 100), 0, math.random(-100, 100))
- wait(0.02)
- script.Parent.Position = UDim2.new(-0.2, 0,-0.1, 0)
- wait(0.02)
- end
- end))
- Script8.Name = "StuffScript"
- Script8.Parent = ImageLabel5
- table.insert(cors,sandbox(Script8,function()
- script.Sound:play()
- de = 0
- repeat wait() de = de + 1 script.Parent.Parent.Size = script.Parent.Parent.Size + UDim2.new(0, 60, 0, 40)
- script.Parent.Parent.Position = script.Parent.Parent.Position + UDim2.new(0, -30, 0, -20) until de == 40
- script.Parent.Parent.Static.Visible=true
- script.Parent.Parent.Scream2:play()
- wait(.1)
- script.Sound:stop()
- wait(.1)
- script.Parent:remove()
- end))
- Script8.Disabled = true
- Sound9.Parent = Script8
- Sound9.EmitterSize = 0
- Sound9.MinDistance = 0
- Sound9.Pitch = 1.5
- Sound9.PlaybackSpeed = 1.5
- Sound9.SoundId = "rbxassetid://752370783"
- Sound9.Volume = 1
- ImageLabel10.Name = "Static"
- ImageLabel10.Parent = Frame4
- ImageLabel10.Position = UDim2.new(-0.200000003, -56, -0.100000001, 65)
- ImageLabel10.Rotation = 4.6577825546265
- ImageLabel10.Visible = false
- ImageLabel10.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel10.BackgroundColor = BrickColor.new("Dark grey metallic")
- ImageLabel10.BackgroundColor3 = Color3.new(0.356863, 0.356863, 0.364706)
- ImageLabel10.BorderSizePixel = 0
- ImageLabel10.ZIndex = 10
- ImageLabel10.Image = "rbxassetid://125514848"
- ImageLabel10.ImageColor3 = Color3.new(0, 0, 0)
- Script11.Name = "IntroGUI Script [READ]"
- Script11.Parent = ImageLabel10
- table.insert(cors,sandbox(Script11,function()
- while true do
- script.Parent.Position = script.Parent.Position + UDim2.new(0, math.random(-100, 100), 0, math.random(-100, 100))
- wait(0.05)
- script.Parent.Position = UDim2.new(-0.2, 0,-0.1, 0)
- wait(0.05)
- end
- end))
- Script12.Parent = ImageLabel10
- table.insert(cors,sandbox(Script12,function()
- while wait() do
- script.Parent.Rotation = math.sin(tick() * 0) * 10
- end
- end))
- Sound13.Name = "Scream2"
- Sound13.Parent = Frame4
- Sound13.Looped = true
- Sound13.EmitterSize = 0
- Sound13.MinDistance = 0
- Sound13.Volume = 1
- Part14.Name = "Torso"
- Part14.Parent = Model0
- Part14.CFrame = CFrame.new(-18.7492905, 3.00002193, 236.262543, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part14.Orientation = Vector3.new(0, -90, 0)
- Part14.Position = Vector3.new(-18.7492905, 3.00002193, 236.262543)
- Part14.Rotation = Vector3.new(0, -90, 0)
- Part14.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part14.Transparency = 1
- Part14.Size = Vector3.new(2, 2, 1)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Earth green")
- Part14.Material = Enum.Material.WoodPlanks
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Earth green")
- Part14.FormFactor = Enum.FormFactor.Symmetric
- Part14.formFactor = Enum.FormFactor.Symmetric
- Motor6D15.Name = "Left Hip"
- Motor6D15.Parent = Part14
- Motor6D15.MaxVelocity = 0.10000000149012
- Motor6D15.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D15.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D15.Part0 = Part14
- Motor6D15.Part1 = Part21
- Motor6D15.part1 = Part21
- Motor6D16.Name = "Right Hip"
- Motor6D16.Parent = Part14
- Motor6D16.MaxVelocity = 0.10000000149012
- Motor6D16.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D16.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D16.Part0 = Part14
- Motor6D16.Part1 = Part22
- Motor6D16.part1 = Part22
- Motor6D17.Name = "Left Shoulder"
- Motor6D17.Parent = Part14
- Motor6D17.MaxVelocity = 0.10000000149012
- Motor6D17.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D17.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D17.Part0 = Part14
- Motor6D17.Part1 = Part23
- Motor6D17.part1 = Part23
- Motor6D18.Name = "Right Shoulder"
- Motor6D18.Parent = Part14
- Motor6D18.MaxVelocity = 0.10000000149012
- Motor6D18.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D18.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D18.Part0 = Part14
- Motor6D18.Part1 = Part24
- Motor6D18.part1 = Part24
- Motor6D19.Name = "Neck"
- Motor6D19.Parent = Part14
- Motor6D19.MaxVelocity = 0.10000000149012
- Motor6D19.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D19.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D19.Part0 = Part14
- Motor6D19.Part1 = Part25
- Motor6D19.part1 = Part25
- BodyForce20.Name = "RepulsionForce"
- BodyForce20.Parent = Part14
- BodyForce20.Force = Vector3.new(0, 0, 0)
- BodyForce20.force = Vector3.new(0, 0, 0)
- Part21.Name = "Left Leg"
- Part21.Parent = Model0
- Part21.CFrame = CFrame.new(-18.7492905, 1.00002205, 235.762543, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part21.Orientation = Vector3.new(0, -90, 0)
- Part21.Position = Vector3.new(-18.7492905, 1.00002205, 235.762543)
- Part21.Rotation = Vector3.new(0, -90, 0)
- Part21.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part21.Transparency = 1
- Part21.Size = Vector3.new(1, 2, 1)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Earth green")
- Part21.CanCollide = false
- Part21.Material = Enum.Material.WoodPlanks
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Earth green")
- Part21.FormFactor = Enum.FormFactor.Symmetric
- Part21.formFactor = Enum.FormFactor.Symmetric
- Part22.Name = "Right Leg"
- Part22.Parent = Model0
- Part22.CFrame = CFrame.new(-18.7492905, 1.00002205, 236.762543, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part22.Orientation = Vector3.new(0, -90, 0)
- Part22.Position = Vector3.new(-18.7492905, 1.00002205, 236.762543)
- Part22.Rotation = Vector3.new(0, -90, 0)
- Part22.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part22.Transparency = 1
- Part22.Size = Vector3.new(1, 2, 1)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Earth green")
- Part22.CanCollide = false
- Part22.Material = Enum.Material.WoodPlanks
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Earth green")
- Part22.FormFactor = Enum.FormFactor.Symmetric
- Part22.formFactor = Enum.FormFactor.Symmetric
- Part23.Name = "Left Arm"
- Part23.Parent = Model0
- Part23.CFrame = CFrame.new(-18.7492905, 3.00002193, 234.762543, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part23.Orientation = Vector3.new(0, -90, 0)
- Part23.Position = Vector3.new(-18.7492905, 3.00002193, 234.762543)
- Part23.Rotation = Vector3.new(0, -90, 0)
- Part23.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part23.Transparency = 1
- Part23.Size = Vector3.new(1, 2, 1)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Earth green")
- Part23.CanCollide = false
- Part23.Material = Enum.Material.WoodPlanks
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Earth green")
- Part23.FormFactor = Enum.FormFactor.Symmetric
- Part23.formFactor = Enum.FormFactor.Symmetric
- Part24.Name = "Right Arm"
- Part24.Parent = Model0
- Part24.CFrame = CFrame.new(-18.7492905, 3.00002193, 237.762543, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part24.Orientation = Vector3.new(0, -90, 0)
- Part24.Position = Vector3.new(-18.7492905, 3.00002193, 237.762543)
- Part24.Rotation = Vector3.new(0, -90, 0)
- Part24.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part24.Transparency = 1
- Part24.Size = Vector3.new(1, 2, 1)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Earth green")
- Part24.CanCollide = false
- Part24.Material = Enum.Material.WoodPlanks
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Earth green")
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.formFactor = Enum.FormFactor.Symmetric
- Part25.Name = "Head"
- Part25.Parent = Model0
- Part25.CFrame = CFrame.new(-18.7492905, 4.50002193, 236.262543, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part25.Orientation = Vector3.new(0, -90, 0)
- Part25.Position = Vector3.new(-18.7492905, 4.50002193, 236.262543)
- Part25.Rotation = Vector3.new(0, -90, 0)
- Part25.Color = Color3.new(0.227451, 0.490196, 0.0823529)
- Part25.Transparency = 1
- Part25.Size = Vector3.new(2, 1, 1)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Camo")
- Part25.Material = Enum.Material.WoodPlanks
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Camo")
- Part25.FormFactor = Enum.FormFactor.Symmetric
- Part25.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh26.Parent = Part25
- SpecialMesh26.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpotLight27.Parent = Part25
- SpotLight27.Color = Color3.new(1, 0, 0)
- SpotLight27.Range = 30
- SpotLight27.Brightness = inf
- Humanoid28.Parent = Model0
- Humanoid28.Health = inf
- Humanoid28.JumpPower = 20
- Humanoid28.LeftLeg = Part21
- Humanoid28.MaxHealth = inf
- Humanoid28.RightLeg = Part22
- Humanoid28.Torso = Part57
- Humanoid28.WalkSpeed = 30
- Humanoid28.maxHealth = inf
- Backpack29.Name = "AI"
- Backpack29.Parent = Model0
- Script30.Name = "Pathfinding"
- Script30.Parent = Backpack29
- table.insert(cors,sandbox(Script30,function()
- debugMode = false
- targetNPCs = false
- --
- h = script.Parent.Parent:WaitForChild("Humanoid")
- pathService = game:GetService("PathfindingService")
- targetV = script.Parent:WaitForChild("Target")
- function closestTargetAndPath()
- local humanoids = {}
- if targetNPCs then
- local function recurse(o)
- for _,obj in pairs(o:GetChildren()) do
- if obj:IsA("Model") then
- if obj:findFirstChild("Humanoid") and obj:findFirstChild("Torso") and obj.Humanoid ~= h and obj.Humanoid.Health > 0 and not obj:findFirstChild("ForceField") then
- table.insert(humanoids,obj.Humanoid)
- end
- end
- recurse(obj)
- end
- end
- recurse(workspace)
- else
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Character and v.Character:findFirstChild("HumanoidRootPart") and v.Character:findFirstChild("Humanoid") and v.Character.Humanoid.Health > 0 and not v:findFirstChild("ForceField") then
- table.insert(humanoids,v.Character.Humanoid)
- end
- end
- end
- local closest,path,dist
- for _,humanoid in pairs(humanoids) do
- local myPath = pathService:ComputeRawPathAsync(h.Torso.Position,humanoid.Torso.Position,500)
- if myPath.Status ~= Enum.PathStatus.FailFinishNotEmpty then
- -- Now that we have a successful path, we need to figure out how far we need to actually travel to reach this point.
- local myDist = 0
- local previous = h.Torso.Position
- for _,point in pairs(myPath:GetPointCoordinates()) do
- myDist = myDist + (point-previous).magnitude
- previous = point
- end
- if not dist or myDist < dist then -- if true, this is the closest path so far.
- closest = humanoid
- path = myPath
- dist = myDist
- end
- end
- end
- return closest,path
- end
- function goToPos(loc)
- h:MoveTo(loc)
- local distance = (loc-h.Torso.Position).magnitude
- local start = tick()
- while distance > 4 do
- if tick()-start > distance/h.WalkSpeed then -- Something may have gone wrong. Just break.
- break
- end
- distance = (loc-h.Torso.Position).magnitude
- wait()
- end
- end
- while wait() do
- local target,path = closestTargetAndPath()
- local didBreak = false
- local targetStart
- if target and h.Torso then
- targetV.Value = target
- targetStart = target.Torso.Position
- roaming = false
- local previous = h.Torso.Position
- local points = path:GetPointCoordinates()
- local s = #points > 1 and 2 or 1
- for i = s,#points do
- local point = points[i]
- if didBreak then
- break
- end
- if target and target.Torso and target.Health > 0 then
- if (target.Torso.Position-targetStart).magnitude < 1.5 then
- local pos = previous:lerp(point,.5)
- local moveDir = ((pos - h.Torso.Position).unit * 2)
- goToPos(previous:lerp(point,.5))
- previous = point
- end
- else
- didBreak = true
- break
- end
- end
- else
- targetV.Value = nil
- end
- if not didBreak and targetStart then
- goToPos(targetStart)
- end
- end
- end))
- Script31.Name = "AutoJump"
- Script31.Parent = Backpack29
- table.insert(cors,sandbox(Script31,function()
- local h = script.Parent.Parent:WaitForChild("Humanoid")
- while wait(math.random()/4) do
- local check1 = game.Workspace:FindPartOnRay(Ray.new(h.Torso.Position-Vector3.new(0,1.5,0), h.Torso.CFrame.lookVector*3), h.Parent)
- local check2 = game.Workspace:FindPartOnRay(Ray.new(h.Torso.Position+Vector3.new(0,1.5,0), h.Torso.CFrame.lookVector*3), h.Parent)
- if check1 or check2 then
- h.Jump = true
- end
- end
- end))
- ObjectValue32.Name = "Target"
- ObjectValue32.Parent = Backpack29
- Script33.Name = "Animate"
- Script33.Parent = Model0
- table.insert(cors,sandbox(Script33,function()
- -- This is in charge of the animations for the character. Pretty much stole it from the default character. Removed emote stuff.
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimInstance = nil
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
- },
- run = {
- { id = "run.xml", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- math.randomseed(tick())
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- currentAnim = ""
- currentAnimInstance = nil
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = currentAnim
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0.01 then
- playAnimation("walk", 0.1, Humanoid)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- playAnimation("sit", 0.5, Humanoid)
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- -- print("Wha " .. pose)
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- stopToolAnimations()
- toolAnim = "None"
- toolAnimInstance = nil
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- local runService = game:service("RunService");
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue34.Name = "climb"
- StringValue34.Parent = Script33
- Animation35.Name = "ClimbAnim"
- Animation35.Parent = StringValue34
- Animation35.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue36.Name = "fall"
- StringValue36.Parent = Script33
- Animation37.Name = "FallAnim"
- Animation37.Parent = StringValue36
- Animation37.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue38.Name = "idle"
- StringValue38.Parent = Script33
- Animation39.Name = "Animation1"
- Animation39.Parent = StringValue38
- Animation39.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue40.Name = "Weight"
- NumberValue40.Parent = Animation39
- NumberValue40.Value = 9
- Animation41.Name = "Animation2"
- Animation41.Parent = StringValue38
- Animation41.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue42.Name = "Weight"
- NumberValue42.Parent = Animation41
- NumberValue42.Value = 1
- StringValue43.Name = "jump"
- StringValue43.Parent = Script33
- Animation44.Name = "JumpAnim"
- Animation44.Parent = StringValue43
- Animation44.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue45.Name = "run"
- StringValue45.Parent = Script33
- Animation46.Name = "RunAnim"
- Animation46.Parent = StringValue45
- Animation46.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue47.Name = "sit"
- StringValue47.Parent = Script33
- Animation48.Name = "SitAnim"
- Animation48.Parent = StringValue47
- Animation48.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- StringValue49.Name = "toolnone"
- StringValue49.Parent = Script33
- Animation50.Name = "ToolNoneAnim"
- Animation50.Parent = StringValue49
- Animation50.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue51.Name = "walk"
- StringValue51.Parent = Script33
- Animation52.Name = "WalkAnim"
- Animation52.Parent = StringValue51
- Animation52.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Script53.Name = "Respawn"
- Script53.Parent = Model0
- table.insert(cors,sandbox(Script53,function()
- local humanoid = script.Parent:WaitForChild("Humanoid")
- local backup = script.Parent:clone()
- humanoid.Died:connect(function ()
- wait(5)
- backup.Parent = workspace
- if script.Parent then
- script.Parent:Destroy()
- end
- end)
- end))
- Script54.Name = "Sound"
- Script54.Parent = Model0
- table.insert(cors,sandbox(Script54,function()
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("")
- local sFallingDown = newSound("")
- local sFreeFalling = newSound("")
- local sGettingUp = newSound("")
- local sJumping = newSound("")
- local sRunning = newSound("rbxassetid://429934509")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end))
- Script55.Name = "Weld"
- Script55.Parent = Model0
- table.insert(cors,sandbox(Script55,function()
- local prev
- local parts = script.Parent:GetChildren()
- for i = 1,#parts do
- --remove any of the following parts that say "(parts[i].className == [className])" if you want to exclude that particular className type from the Weld
- if ((parts[i].className == "Part") or (parts[i].className == "Handle") or (parts[i].className == "TrussPart") or (parts[i].className == "VehicleSeat") or (parts[i].className == "SkateboardPlatform")) then
- if (prev ~= nil) then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- parts[i].Anchored = false
- end
- prev = parts[i]
- end
- end
- wait(3)
- end))
- Script56.Name = "Weld Script"
- Script56.Parent = Model0
- table.insert(cors,sandbox(Script56,function()
- --Simply put it inside any model with bricks inside
- local prev
- local parts = script.Parent:GetChildren()
- for i = 1,#parts do
- if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") or (parts[i].className == "WedgePart") or (parts[i].className == "UnionOperation") then
- if (prev ~= nil)then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- end
- prev = parts[i]
- end
- end
- --Credits to NyroKoSu and OrientalAura
- end))
- Part57.Name = "HumanoidRootPart"
- Part57.Parent = Model0
- Part57.CFrame = CFrame.new(-18.7492905, 3.00002193, 236.262543, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part57.Orientation = Vector3.new(0, -90, 0)
- Part57.Position = Vector3.new(-18.7492905, 3.00002193, 236.262543)
- Part57.Rotation = Vector3.new(0, -90, 0)
- Part57.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part57.Size = Vector3.new(2, 2, 1)
- Part57.BottomSurface = Enum.SurfaceType.Smooth
- Part57.BrickColor = BrickColor.new("Earth green")
- Part57.Material = Enum.Material.WoodPlanks
- Part57.TopSurface = Enum.SurfaceType.Smooth
- Part57.brickColor = BrickColor.new("Earth green")
- Part57.FormFactor = Enum.FormFactor.Symmetric
- Part57.formFactor = Enum.FormFactor.Symmetric
- Motor6D58.Name = "Root Hip"
- Motor6D58.Parent = Part57
- Motor6D58.MaxVelocity = 0.10000000149012
- Motor6D58.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D58.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D58.Part0 = Part57
- Motor6D58.Part1 = Part14
- Motor6D58.part1 = Part14
- SpecialMesh59.Parent = Part57
- SpecialMesh59.MeshId = "rbxassetid://506632650"
- SpecialMesh59.Offset = Vector3.new(0, 0.600000024, -0.300000012)
- SpecialMesh59.Scale = Vector3.new(0.109999999, 0.109999999, 0.109999999)
- SpecialMesh59.TextureId = "rbxassetid://506632671"
- SpecialMesh59.MeshType = Enum.MeshType.FileMesh
- Part60.Name = "Eye Light"
- Part60.Parent = Model0
- Part60.CFrame = CFrame.new(-18.6082211, 5.92569208, 236.258713, 1, 0, 0, 0, 1, -3.05623195e-42, 0, -3.05623195e-42, 1)
- Part60.Position = Vector3.new(-18.6082211, 5.92569208, 236.258713)
- Part60.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part60.Transparency = 1
- Part60.Size = Vector3.new(0.180000022, 0.180000022, 0.180000022)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.BrickColor = BrickColor.new("Really black")
- Part60.Material = Enum.Material.SmoothPlastic
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.brickColor = BrickColor.new("Really black")
- Part60.Shape = Enum.PartType.Ball
- BillboardGui61.Name = "LightGUI"
- BillboardGui61.Parent = Part60
- BillboardGui61.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel62.Name = "Light"
- ImageLabel62.Parent = BillboardGui61
- ImageLabel62.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel62.BackgroundColor = BrickColor.new("New Yeller")
- ImageLabel62.BackgroundColor3 = Color3.new(1, 1, 0)
- ImageLabel62.BackgroundTransparency = 1
- ImageLabel62.BorderColor = BrickColor.new("New Yeller")
- ImageLabel62.BorderColor3 = Color3.new(1, 1, 0)
- ImageLabel62.Image = "rbxasset://textures/particles/sparkles_main.dds"
- ImageLabel62.ImageColor3 = Color3.new(1, 0, 0)
- Script63.Parent = BillboardGui61
- table.insert(cors,sandbox(Script63,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Part64.Name = "Eye"
- Part64.Parent = Model0
- Part64.CFrame = CFrame.new(-18.8107071, 5.84770679, 235.769287, 1, 0, 0, 0, 1, -3.05623195e-42, 0, -3.05623195e-42, 1)
- Part64.Position = Vector3.new(-18.8107071, 5.84770679, 235.769287)
- Part64.Color = Color3.new(1, 0, 0)
- Part64.Size = Vector3.new(0.180000022, 0.180000022, 0.180000022)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.BrickColor = BrickColor.new("Really red")
- Part64.Material = Enum.Material.Neon
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.brickColor = BrickColor.new("Really red")
- Part64.Shape = Enum.PartType.Ball
- Part65.Name = "Eye"
- Part65.Parent = Model0
- Part65.CFrame = CFrame.new(-18.7432938, 5.92569208, 236.258713, 1, 0, 0, 0, 1, -3.05623195e-42, 0, -3.05623195e-42, 1)
- Part65.Position = Vector3.new(-18.7432938, 5.92569208, 236.258713)
- Part65.Color = Color3.new(1, 0, 0)
- Part65.Size = Vector3.new(0.180000022, 0.180000022, 0.180000022)
- Part65.BottomSurface = Enum.SurfaceType.Smooth
- Part65.BrickColor = BrickColor.new("Really red")
- Part65.Material = Enum.Material.Neon
- Part65.TopSurface = Enum.SurfaceType.Smooth
- Part65.brickColor = BrickColor.new("Really red")
- Part65.Shape = Enum.PartType.Ball
- Part66.Name = "Eye Light"
- Part66.Parent = Model0
- Part66.CFrame = CFrame.new(-18.7026634, 5.84770679, 235.769287, 1, 0, 0, 0, 1, -3.05623195e-42, 0, -3.05623195e-42, 1)
- Part66.Position = Vector3.new(-18.7026634, 5.84770679, 235.769287)
- Part66.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part66.Transparency = 1
- Part66.Size = Vector3.new(0.180000022, 0.180000022, 0.180000022)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.BrickColor = BrickColor.new("Really black")
- Part66.Material = Enum.Material.SmoothPlastic
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.brickColor = BrickColor.new("Really black")
- Part66.Shape = Enum.PartType.Ball
- BillboardGui67.Name = "LightGUI"
- BillboardGui67.Parent = Part66
- BillboardGui67.Size = UDim2.new(2, 0, 2, 0)
- ImageLabel68.Name = "Light"
- ImageLabel68.Parent = BillboardGui67
- ImageLabel68.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel68.BackgroundColor = BrickColor.new("New Yeller")
- ImageLabel68.BackgroundColor3 = Color3.new(1, 1, 0)
- ImageLabel68.BackgroundTransparency = 1
- ImageLabel68.BorderColor = BrickColor.new("New Yeller")
- ImageLabel68.BorderColor3 = Color3.new(1, 1, 0)
- ImageLabel68.Image = "rbxasset://textures/particles/sparkles_main.dds"
- ImageLabel68.ImageColor3 = Color3.new(1, 0, 0)
- Script69.Parent = BillboardGui67
- table.insert(cors,sandbox(Script69,function()
- script.Parent.Adornee = script.Parent.Parent
- end))
- Camera70.Name = "ThumbnailCamera"
- Camera70.Parent = Model0
- Camera70.CFrame = CFrame.new(-53.2237892, 5.91876936, -106.117729, 0.412863821, -0.0688619316, 0.90818584, -1.86264515e-09, 0.997137785, 0.0756065771, -0.910792828, -0.0312152226, 0.411682069)
- Camera70.CoordinateFrame = CFrame.new(-53.2237892, 5.91876936, -106.117729, 0.412863821, -0.0688619316, 0.90818584, -1.86264515e-09, 0.997137785, 0.0756065771, -0.910792828, -0.0312152226, 0.411682069)
- Camera70.Focus = CFrame.new(-55.0401611, 5.76755619, -106.941093, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera70.focus = CFrame.new(-55.0401611, 5.76755619, -106.941093, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement