Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Assited 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"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Attachment5 = Instance.new("Attachment")
- Attachment6 = Instance.new("Attachment")
- Attachment7 = Instance.new("Attachment")
- Attachment8 = Instance.new("Attachment")
- Sound9 = Instance.new("Sound")
- RemoteEvent10 = Instance.new("RemoteEvent")
- Sound11 = Instance.new("Sound")
- RemoteEvent12 = Instance.new("RemoteEvent")
- Sound13 = Instance.new("Sound")
- RemoteEvent14 = Instance.new("RemoteEvent")
- Sound15 = Instance.new("Sound")
- RemoteEvent16 = Instance.new("RemoteEvent")
- Sound17 = Instance.new("Sound")
- RemoteEvent18 = Instance.new("RemoteEvent")
- Sound19 = Instance.new("Sound")
- RemoteEvent20 = Instance.new("RemoteEvent")
- Sound21 = Instance.new("Sound")
- RemoteEvent22 = Instance.new("RemoteEvent")
- Sound23 = Instance.new("Sound")
- RemoteEvent24 = Instance.new("RemoteEvent")
- Sound25 = Instance.new("Sound")
- RemoteEvent26 = Instance.new("RemoteEvent")
- Decal27 = Instance.new("Decal")
- Part28 = Instance.new("Part")
- Decal29 = Instance.new("Decal")
- Attachment30 = Instance.new("Attachment")
- Attachment31 = Instance.new("Attachment")
- Attachment32 = Instance.new("Attachment")
- Attachment33 = Instance.new("Attachment")
- Attachment34 = Instance.new("Attachment")
- Attachment35 = Instance.new("Attachment")
- Attachment36 = Instance.new("Attachment")
- Attachment37 = Instance.new("Attachment")
- Motor6D38 = Instance.new("Motor6D")
- Motor6D39 = Instance.new("Motor6D")
- Motor6D40 = Instance.new("Motor6D")
- Motor6D41 = Instance.new("Motor6D")
- Motor6D42 = Instance.new("Motor6D")
- Part43 = Instance.new("Part")
- Attachment44 = Instance.new("Attachment")
- Attachment45 = Instance.new("Attachment")
- Part46 = Instance.new("Part")
- Attachment47 = Instance.new("Attachment")
- Attachment48 = Instance.new("Attachment")
- Part49 = Instance.new("Part")
- Attachment50 = Instance.new("Attachment")
- Part51 = Instance.new("Part")
- Attachment52 = Instance.new("Attachment")
- Humanoid53 = Instance.new("Humanoid")
- Part54 = Instance.new("Part")
- Attachment55 = Instance.new("Attachment")
- Motor6D56 = Instance.new("Motor6D")
- Script57 = Instance.new("Script")
- LocalScript58 = Instance.new("LocalScript")
- Script59 = Instance.new("Script")
- LocalScript60 = Instance.new("LocalScript")
- StringValue61 = Instance.new("StringValue")
- Animation62 = Instance.new("Animation")
- NumberValue63 = Instance.new("NumberValue")
- Animation64 = Instance.new("Animation")
- NumberValue65 = Instance.new("NumberValue")
- StringValue66 = Instance.new("StringValue")
- Animation67 = Instance.new("Animation")
- StringValue68 = Instance.new("StringValue")
- Animation69 = Instance.new("Animation")
- StringValue70 = Instance.new("StringValue")
- Animation71 = Instance.new("Animation")
- StringValue72 = Instance.new("StringValue")
- Animation73 = Instance.new("Animation")
- StringValue74 = Instance.new("StringValue")
- Animation75 = Instance.new("Animation")
- StringValue76 = Instance.new("StringValue")
- Animation77 = Instance.new("Animation")
- StringValue78 = Instance.new("StringValue")
- Animation79 = Instance.new("Animation")
- BodyColors80 = Instance.new("BodyColors")
- CharacterMesh81 = Instance.new("CharacterMesh")
- Shirt82 = Instance.new("Shirt")
- Accessory83 = Instance.new("Accessory")
- Part84 = Instance.new("Part")
- SpecialMesh85 = Instance.new("SpecialMesh")
- Attachment86 = Instance.new("Attachment")
- Weld87 = Instance.new("Weld")
- CharacterMesh88 = Instance.new("CharacterMesh")
- CharacterMesh89 = Instance.new("CharacterMesh")
- CharacterMesh90 = Instance.new("CharacterMesh")
- ShirtGraphic91 = Instance.new("ShirtGraphic")
- CharacterMesh92 = Instance.new("CharacterMesh")
- Accessory93 = Instance.new("Accessory")
- Part94 = Instance.new("Part")
- SpecialMesh95 = Instance.new("SpecialMesh")
- Attachment96 = Instance.new("Attachment")
- Vector3Value97 = Instance.new("Vector3Value")
- Weld98 = Instance.new("Weld")
- Pants99 = Instance.new("Pants")
- Accessory100 = Instance.new("Accessory")
- Part101 = Instance.new("Part")
- SpecialMesh102 = Instance.new("SpecialMesh")
- Vector3Value103 = Instance.new("Vector3Value")
- Attachment104 = Instance.new("Attachment")
- Weld105 = Instance.new("Weld")
- Accessory106 = Instance.new("Accessory")
- Part107 = Instance.new("Part")
- SpecialMesh108 = Instance.new("SpecialMesh")
- Attachment109 = Instance.new("Attachment")
- Vector3Value110 = Instance.new("Vector3Value")
- Weld111 = Instance.new("Weld")
- Accessory112 = Instance.new("Accessory")
- Part113 = Instance.new("Part")
- SpecialMesh114 = Instance.new("SpecialMesh")
- Attachment115 = Instance.new("Attachment")
- Weld116 = Instance.new("Weld")
- Weld117 = Instance.new("Weld")
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Size = Vector3.new(0.145240039, 0.145240039, 0.145240039)
- Part1.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Position = Vector3.new(0, 0.871440172, 0.337475598)
- Model2.Name = "Mini Memo1332"
- Model2.Parent = Part1
- Model2.PrimaryPart = Part3
- Part3.Name = "Head"
- Part3.Parent = Model2
- Part3.BrickColor = BrickColor.new("Light orange")
- Part3.Locked = true
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.Size = Vector3.new(0.580960155, 0.290480077, 0.290480077)
- Part3.CFrame = CFrame.new(0, 1.30716026, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part3.Position = Vector3.new(0, 1.30716026, 0.337475598)
- Part3.Color = Color3.new(0.917647, 0.721569, 0.572549)
- SpecialMesh4.Parent = Part3
- SpecialMesh4.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh4.Scale = Vector3.new(1.25, 1.25, 1.25)
- Attachment5.Name = "HairAttachment"
- Attachment5.Parent = Part3
- Attachment5.CFrame = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment5.Position = Vector3.new(0, 0.174288049, 0)
- Attachment6.Name = "HatAttachment"
- Attachment6.Parent = Part3
- Attachment6.CFrame = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment6.Position = Vector3.new(0, 0.174288049, 0)
- Attachment7.Name = "FaceFrontAttachment"
- Attachment7.Parent = Part3
- Attachment7.CFrame = CFrame.new(0, 0, -0.174288049, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment7.Position = Vector3.new(0, 0, -0.174288049)
- Attachment8.Name = "FaceCenterAttachment"
- Attachment8.Parent = Part3
- Sound9.Name = "GettingUp"
- Sound9.Parent = Part3
- Sound9.SoundId = "rbxasset://sounds/action_get_up.mp3"
- Sound9.Volume = 0.64999997615814
- RemoteEvent10.Name = "CharacterSoundEvent"
- RemoteEvent10.Parent = Sound9
- Sound11.Name = "Died"
- Sound11.Parent = Part3
- Sound11.SoundId = "rbxasset://sounds/uuhhh.mp3"
- Sound11.Volume = 0.64999997615814
- RemoteEvent12.Name = "CharacterSoundEvent"
- RemoteEvent12.Parent = Sound11
- Sound13.Name = "FreeFalling"
- Sound13.Parent = Part3
- Sound13.SoundId = "rbxasset://sounds/action_falling.mp3"
- Sound13.TimePosition = 0.034005937717666
- Sound13.Volume = 0
- Sound13.Looped = true
- RemoteEvent14.Name = "CharacterSoundEvent"
- RemoteEvent14.Parent = Sound13
- Sound15.Name = "Jumping"
- Sound15.Parent = Part3
- Sound15.SoundId = "rbxasset://sounds/action_jump.mp3"
- Sound15.Volume = 0.64999997615814
- RemoteEvent16.Name = "CharacterSoundEvent"
- RemoteEvent16.Parent = Sound15
- Sound17.Name = "Landing"
- Sound17.Parent = Part3
- Sound17.SoundId = "rbxasset://sounds/action_jump_land.mp3"
- Sound17.Volume = 1
- RemoteEvent18.Name = "CharacterSoundEvent"
- RemoteEvent18.Parent = Sound17
- Sound19.Name = "Splash"
- Sound19.Parent = Part3
- Sound19.SoundId = "rbxasset://sounds/impact_water.mp3"
- Sound19.Volume = 0.64999997615814
- RemoteEvent20.Name = "CharacterSoundEvent"
- RemoteEvent20.Parent = Sound19
- Sound21.Name = "Running"
- Sound21.Parent = Part3
- Sound21.Pitch = 1.8500000238419
- Sound21.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- Sound21.Volume = 0.64999997615814
- Sound21.Looped = true
- RemoteEvent22.Name = "CharacterSoundEvent"
- RemoteEvent22.Parent = Sound21
- Sound23.Name = "Swimming"
- Sound23.Parent = Part3
- Sound23.Pitch = 1.6000000238419
- Sound23.SoundId = "rbxasset://sounds/action_swim.mp3"
- Sound23.Volume = 0.64999997615814
- Sound23.Looped = true
- RemoteEvent24.Name = "CharacterSoundEvent"
- RemoteEvent24.Parent = Sound23
- Sound25.Name = "Climbing"
- Sound25.Parent = Part3
- Sound25.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- Sound25.Volume = 0.64999997615814
- Sound25.Looped = true
- RemoteEvent26.Name = "CharacterSoundEvent"
- RemoteEvent26.Parent = Sound25
- Decal27.Name = "face"
- Decal27.Parent = Part3
- Decal27.Texture = "http://www.roblox.com/asset/?id=15365479"
- Part28.Name = "Torso"
- Part28.Parent = Model2
- Part28.BrickColor = BrickColor.new("Light orange")
- Part28.Locked = true
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.Size = Vector3.new(0.580960155, 0.580960155, 0.290480077)
- Part28.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part28.LeftSurface = Enum.SurfaceType.Weld
- Part28.RightSurface = Enum.SurfaceType.Weld
- Part28.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part28.Position = Vector3.new(0, 0.871440172, 0.337475598)
- Part28.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Decal29.Name = "roblox"
- Decal29.Parent = Part28
- Decal29.Texture = "http://www.roblox.com/asset/?id=1394291048"
- Attachment30.Name = "NeckAttachment"
- Attachment30.Parent = Part28
- Attachment30.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment30.Position = Vector3.new(0, 0.290480018, 0)
- Attachment31.Name = "BodyFrontAttachment"
- Attachment31.Parent = Part28
- Attachment31.CFrame = CFrame.new(0, 0, -0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment31.Position = Vector3.new(0, 0, -0.145240009)
- Attachment32.Name = "BodyBackAttachment"
- Attachment32.Parent = Part28
- Attachment32.CFrame = CFrame.new(0, 0, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment32.Position = Vector3.new(0, 0, 0.145240009)
- Attachment33.Name = "LeftCollarAttachment"
- Attachment33.Parent = Part28
- Attachment33.CFrame = CFrame.new(-0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment33.Position = Vector3.new(-0.290480018, 0.290480018, 0)
- Attachment34.Name = "RightCollarAttachment"
- Attachment34.Parent = Part28
- Attachment34.CFrame = CFrame.new(0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment34.Position = Vector3.new(0.290480018, 0.290480018, 0)
- Attachment35.Name = "WaistFrontAttachment"
- Attachment35.Parent = Part28
- Attachment35.CFrame = CFrame.new(0, -0.290480018, -0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment35.Position = Vector3.new(0, -0.290480018, -0.145240009)
- Attachment36.Name = "WaistCenterAttachment"
- Attachment36.Parent = Part28
- Attachment36.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment36.Position = Vector3.new(0, -0.290480018, 0)
- Attachment37.Name = "WaistBackAttachment"
- Attachment37.Parent = Part28
- Attachment37.CFrame = CFrame.new(0, -0.290480018, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment37.Position = Vector3.new(0, -0.290480018, 0.145240009)
- Motor6D38.Name = "Right Shoulder"
- Motor6D38.Parent = Part28
- Motor6D38.C0 = CFrame.new(0.290480077, 0.145240039, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D38.C1 = CFrame.new(-0.145240039, 0.145240039, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D38.Part0 = Part28
- Motor6D38.Part1 = Part46
- Motor6D38.MaxVelocity = 0.10000000149012
- Motor6D39.Name = "Left Shoulder"
- Motor6D39.Parent = Part28
- Motor6D39.C0 = CFrame.new(-0.290480077, 0.145240039, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D39.C1 = CFrame.new(0.145240039, 0.145240039, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D39.Part0 = Part28
- Motor6D39.Part1 = Part43
- Motor6D39.MaxVelocity = 0.10000000149012
- Motor6D40.Name = "Right Hip"
- Motor6D40.Parent = Part28
- Motor6D40.C0 = CFrame.new(0.290480077, -0.290480077, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D40.C1 = CFrame.new(0.145240039, 0.290480077, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D40.Part0 = Part28
- Motor6D40.Part1 = Part51
- Motor6D40.MaxVelocity = 0.10000000149012
- Motor6D41.Name = "Left Hip"
- Motor6D41.Parent = Part28
- Motor6D41.C0 = CFrame.new(-0.290480077, -0.290480077, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D41.C1 = CFrame.new(-0.145240039, 0.290480077, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D41.Part0 = Part28
- Motor6D41.Part1 = Part49
- Motor6D41.MaxVelocity = 0.10000000149012
- Motor6D42.Name = "Neck"
- Motor6D42.Parent = Part28
- Motor6D42.C0 = CFrame.new(0, 0.290480077, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D42.C1 = CFrame.new(0, -0.145240039, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D42.Part0 = Part28
- Motor6D42.Part1 = Part3
- Motor6D42.MaxVelocity = 0.10000000149012
- Part43.Name = "Left Arm"
- Part43.Parent = Model2
- Part43.BrickColor = BrickColor.new("Light orange")
- Part43.CanCollide = false
- Part43.Locked = true
- Part43.FormFactor = Enum.FormFactor.Symmetric
- Part43.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
- Part43.CFrame = CFrame.new(-0.435720116, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part43.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part43.Position = Vector3.new(-0.435720116, 0.871440172, 0.337475598)
- Part43.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Attachment44.Name = "LeftShoulderAttachment"
- Attachment44.Parent = Part43
- Attachment44.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment44.Position = Vector3.new(0, 0.290480018, 0)
- Attachment45.Name = "LeftGripAttachment"
- Attachment45.Parent = Part43
- Attachment45.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment45.Position = Vector3.new(0, -0.290480018, 0)
- Part46.Name = "Right Arm"
- Part46.Parent = Model2
- Part46.BrickColor = BrickColor.new("Light orange")
- Part46.CanCollide = false
- Part46.Locked = true
- Part46.FormFactor = Enum.FormFactor.Symmetric
- Part46.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
- Part46.CFrame = CFrame.new(0.435720116, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part46.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part46.Position = Vector3.new(0.435720116, 0.871440172, 0.337475598)
- Part46.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Attachment47.Name = "RightShoulderAttachment"
- Attachment47.Parent = Part46
- Attachment47.CFrame = CFrame.new(0, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment47.Position = Vector3.new(0, 0.290480018, 0)
- Attachment48.Name = "RightGripAttachment"
- Attachment48.Parent = Part46
- Attachment48.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment48.Position = Vector3.new(0, -0.290480018, 0)
- Part49.Name = "Left Leg"
- Part49.Parent = Model2
- Part49.BrickColor = BrickColor.new("Light orange")
- Part49.CanCollide = false
- Part49.Locked = true
- Part49.FormFactor = Enum.FormFactor.Symmetric
- Part49.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
- Part49.CFrame = CFrame.new(-0.145240039, 0.290480018, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part49.Position = Vector3.new(-0.145240039, 0.290480018, 0.337475598)
- Part49.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Attachment50.Name = "LeftFootAttachment"
- Attachment50.Parent = Part49
- Attachment50.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment50.Position = Vector3.new(0, -0.290480018, 0)
- Part51.Name = "Right Leg"
- Part51.Parent = Model2
- Part51.BrickColor = BrickColor.new("Light orange")
- Part51.CanCollide = false
- Part51.Locked = true
- Part51.FormFactor = Enum.FormFactor.Symmetric
- Part51.Size = Vector3.new(0.290480077, 0.580960155, 0.290480077)
- Part51.CFrame = CFrame.new(0.145240039, 0.290480018, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part51.Position = Vector3.new(0.145240039, 0.290480018, 0.337475598)
- Part51.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Attachment52.Name = "RightFootAttachment"
- Attachment52.Parent = Part51
- Attachment52.CFrame = CFrame.new(0, -0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment52.Position = Vector3.new(0, -0.290480018, 0)
- Humanoid53.Parent = Model2
- Humanoid53.RightLeg = Part51
- Humanoid53.LeftLeg = Part49
- Humanoid53.Torso = Part54
- Part54.Name = "HumanoidRootPart"
- Part54.Parent = Model2
- Part54.Transparency = 1
- Part54.CanCollide = false
- Part54.Locked = true
- Part54.FormFactor = Enum.FormFactor.Symmetric
- Part54.Size = Vector3.new(0.580960155, 0.580960155, 0.290480077)
- Part54.CFrame = CFrame.new(0, 0.871440172, 0.337475598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.TopSurface = Enum.SurfaceType.Smooth
- Part54.Position = Vector3.new(0, 0.871440172, 0.337475598)
- Attachment55.Name = "RootAttachment"
- Attachment55.Parent = Part54
- Motor6D56.Name = "RootJoint"
- Motor6D56.Parent = Part54
- Motor6D56.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D56.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D56.Part0 = Part54
- Motor6D56.Part1 = Part28
- Motor6D56.MaxVelocity = 0.10000000149012
- Script57.Name = "Sound"
- Script57.Parent = Model2
- table.insert(cors,sandbox(Script57,function()
- --[[
- Author: @spotco
- This script creates sounds which are placed under the character head.
- These sounds are used by the "LocalSound" script.
- To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
- The default Sound script loaded for every character will then be replaced with your copy of the script.
- ]]--
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Players = game:GetService("Players")
- local SOUND_EVENT_FOLDER_NAME = "DefaultSoundEvents"
- local DEFAULT_SERVER_SOUND_EVENT_NAME = "DefaultServerSoundEvent"
- local SoundEventFolder = ReplicatedStorage:FindFirstChild(SOUND_EVENT_FOLDER_NAME)
- local DefaultServerSoundEvent = nil
- local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
- if useSoundDispatcher then
- if not SoundEventFolder then
- SoundEventFolder = Instance.new("Folder")
- SoundEventFolder.Name = SOUND_EVENT_FOLDER_NAME
- SoundEventFolder.Archivable = false
- SoundEventFolder.Parent = ReplicatedStorage
- end
- DefaultServerSoundEvent = SoundEventFolder:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
- else
- DefaultServerSoundEvent = ReplicatedStorage:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
- end
- if not DefaultServerSoundEvent then
- if useSoundDispatcher then
- DefaultServerSoundEvent = Instance.new("RemoteEvent", SoundEventFolder)
- else
- DefaultServerSoundEvent = Instance.new("RemoteEvent", ReplicatedStorage)
- end
- DefaultServerSoundEvent.Name = DEFAULT_SERVER_SOUND_EVENT_NAME
- DefaultServerSoundEvent.OnServerEvent:Connect(function() end)
- end
- local function CreateNewSound(name, id, looped, pitch, parent)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Name = name
- sound.archivable = false
- sound.Pitch = pitch
- sound.Looped = looped
- sound.MinDistance = 5
- sound.MaxDistance = 150
- sound.Volume = 0.65
- sound.Parent = parent
- if DefaultServerSoundEvent then
- local CharacterSoundEvent = Instance.new("RemoteEvent", sound)
- CharacterSoundEvent.Name = "CharacterSoundEvent"
- CharacterSoundEvent.OnServerEvent:Connect(function(player, playing, resetPosition)
- if type(playing) ~= "boolean" then
- return
- end
- if type(resetPosition) ~= "boolean" then
- return
- end
- if player.Character ~= script.Parent then
- return
- end
- for _, p in pairs(Players:GetPlayers()) do
- if p ~= player then
- -- Connect to the dispatcher to check if the player has loaded.
- if useSoundDispatcher then
- SoundEventFolder:FindFirstChild("SoundDispatcher"):Fire(p, sound, playing, resetPosition)
- else
- DefaultServerSoundEvent:FireClient(p, sound, playing, resetPosition)
- end
- end
- end
- end)
- end
- return sound
- end
- local head = script.Parent:FindFirstChild("Head")
- if not head then
- error("Sound script parent has no child Head.")
- return
- end
- CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
- CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
- CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
- CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
- CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
- CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
- CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
- CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
- CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
- end))
- LocalScript58.Name = "LocalSound"
- LocalScript58.Parent = Script57
- table.insert(cors,sandbox(LocalScript58,function()
- --[[
- Author: @spotco
- This script runs locally for the player of the given humanoid.
- This script triggers humanoid sound play/pause actions locally.
- The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
- immediately for the player and is replicated to all other players.
- This script is optimized to reduce network traffic through minimizing the amount of property replication.
- ]]--
- --All sounds are referenced by this ID
- local SFX = {
- Died = 0;
- Running = 1;
- Swimming = 2;
- Climbing = 3,
- Jumping = 4;
- GettingUp = 5;
- FreeFalling = 6;
- FallingDown = 7;
- Landing = 8;
- Splash = 9;
- }
- local useUpdatedLocalSoundFlag = UserSettings():IsUserFeatureEnabled("UserFixCharacterSoundIssues")
- local Humanoid = nil
- local Head = nil
- --SFX ID to Sound object
- local Sounds = {}
- local SoundService = game:GetService("SoundService")
- local soundEventFolderName = "DefaultSoundEvents"
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local AddCharacterLoadedEvent = nil
- local RemoveCharacterEvent = nil
- local soundEventFolder = ReplicatedStorage:FindFirstChild(soundEventFolderName)
- local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
- if useSoundDispatcher then
- if not soundEventFolder then
- soundEventFolder = Instance.new("Folder", ReplicatedStorage)
- soundEventFolder.Name = soundEventFolderName
- soundEventFolder.Archivable = false
- end
- -- Load the RemoveCharacterEvent
- RemoveCharacterEvent = soundEventFolder:FindFirstChild("RemoveCharacterEvent")
- if RemoveCharacterEvent == nil then
- RemoveCharacterEvent = Instance.new("RemoteEvent", soundEventFolder)
- RemoveCharacterEvent.Name = "RemoveCharacterEvent"
- end
- AddCharacterLoadedEvent = soundEventFolder:FindFirstChild("AddCharacterLoadedEvent")
- if AddCharacterLoadedEvent == nil then
- AddCharacterLoadedEvent = Instance.new("RemoteEvent", soundEventFolder)
- AddCharacterLoadedEvent.Name = "AddCharacterLoadedEvent"
- end
- -- Notify the server a new character has been loaded
- AddCharacterLoadedEvent:FireServer()
- -- Notify the sound dispatcher this character has left.
- game.Players.LocalPlayer.CharacterRemoving:connect(function(character)
- RemoveCharacterEvent:FireServer(game.Players.LocalPlayer)
- end)
- end
- do
- local Figure = script.Parent.Parent
- Head = Figure:WaitForChild("Head")
- while not Humanoid do
- for _,NewHumanoid in pairs(Figure:GetChildren()) do
- if NewHumanoid:IsA("Humanoid") then
- Humanoid = NewHumanoid
- break
- end
- end
- if Humanoid then break end
- Figure.ChildAdded:wait()
- end
- Sounds[SFX.Died] = Head:WaitForChild("Died")
- Sounds[SFX.Running] = Head:WaitForChild("Running")
- Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
- Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
- Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
- Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
- Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
- Sounds[SFX.Landing] = Head:WaitForChild("Landing")
- Sounds[SFX.Splash] = Head:WaitForChild("Splash")
- local DefaultServerSoundEvent = nil
- if useSoundDispatcher then
- DefaultServerSoundEvent = soundEventFolder:FindFirstChild("DefaultServerSoundEvent")
- else
- DefaultServerSoundEvent = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultServerSoundEvent")
- end
- if DefaultServerSoundEvent then
- DefaultServerSoundEvent.OnClientEvent:connect(function(sound, playing, resetPosition)
- if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") then
- if resetPosition and sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- if sound.IsPlaying ~= playing then
- sound.Playing = playing
- end
- else
- if sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- if not sound.IsPlaying then
- sound.Playing = true
- end
- end
- end)
- end
- end
- local IsSoundFilteringEnabled = function()
- return game.Workspace.FilteringEnabled and SoundService.RespectFilteringEnabled
- end
- local Util
- Util = {
- --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
- YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
- --(y - y1)/(x - x1) = m
- local m = (pt1y - pt2y) / (pt1x - pt2x)
- --float b = pt1.y - m * pt1.x;
- local b = (pt1y - m * pt1x)
- return m * x + b
- end;
- --Clamps the value of "val" between the "min" and "max"
- Clamp = function(val,min,max)
- return math.min(max,math.max(min,val))
- end;
- --Gets the horizontal (x,z) velocity magnitude of the given part
- HorizontalSpeed = function(Head)
- local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
- return hVel.magnitude
- end;
- --Gets the vertical (y) velocity magnitude of the given part
- VerticalSpeed = function(Head)
- return math.abs(Head.Velocity.Y)
- end;
- --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
- --If these properties are enabled, use them.
- Play = function(sound)
- if IsSoundFilteringEnabled() then
- sound.CharacterSoundEvent:FireServer(true, true)
- end
- if sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- if not sound.IsPlaying then
- sound.Playing = true
- end
- end;
- Pause = function(sound)
- if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
- sound.CharacterSoundEvent:FireServer(false, false)
- end
- if sound.IsPlaying then
- sound.Playing = false
- end
- end;
- Resume = function(sound)
- if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
- sound.CharacterSoundEvent:FireServer(true, false)
- end
- if not sound.IsPlaying then
- sound.Playing = true
- end
- end;
- Stop = function(sound)
- if UserSettings():IsUserFeatureEnabled("UserPlayCharacterLoopSoundWhenFE") and IsSoundFilteringEnabled() then
- sound.CharacterSoundEvent:FireServer(false, true)
- end
- if sound.IsPlaying then
- sound.Playing = false
- end
- if sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- end;
- }
- do
- -- List of all active Looped sounds
- local playingLoopedSounds = {}
- -- Last seen Enum.HumanoidStateType
- local activeState = nil
- local fallSpeed = 0
- -- Verify and set that "sound" is in "playingLoopedSounds".
- function setSoundInPlayingLoopedSounds(sound)
- for i=1, #playingLoopedSounds do
- if playingLoopedSounds[i] == sound then
- return
- end
- end
- table.insert(playingLoopedSounds,sound)
- end
- -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
- function stopPlayingLoopedSoundsExcept(except)
- for i=#playingLoopedSounds,1,-1 do
- if playingLoopedSounds[i] ~= except then
- Util.Pause(playingLoopedSounds[i])
- table.remove(playingLoopedSounds,i)
- end
- end
- end
- -- Table of Enum.HumanoidStateType to handling function
- local stateUpdateHandler = {
- [Enum.HumanoidStateType.Dead] = function()
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.Died]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.RunningNoPhysics] = function(speed)
- stateUpdated(Enum.HumanoidStateType.Running, speed)
- end;
- [Enum.HumanoidStateType.Running] = function(speed)
- local sound = Sounds[SFX.Running]
- stopPlayingLoopedSoundsExcept(sound)
- if(useUpdatedLocalSoundFlag and activeState == Enum.HumanoidStateType.Freefall and fallSpeed > 0.1) then
- -- Play a landing sound if the character dropped from a large distance
- local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
- local freeFallSound = Sounds[SFX.FreeFalling]
- freeFallSound.Volume = vol
- Util.Play(freeFallSound)
- fallSpeed = 0
- end
- if useUpdatedLocalSoundFlag then
- if speed ~= nil and speed > 0.5 then
- Util.Resume(sound)
- setSoundInPlayingLoopedSounds(sound)
- elseif speed ~= nil then
- stopPlayingLoopedSoundsExcept()
- end
- else
- if Util.HorizontalSpeed(Head) > 0.5 then
- Util.Resume(sound)
- setSoundInPlayingLoopedSounds(sound)
- else
- stopPlayingLoopedSoundsExcept()
- end
- end
- end;
- [Enum.HumanoidStateType.Swimming] = function(speed)
- local threshold
- if useUpdatedLocalSoundFlag then threshold = speed else threshold = Util.VerticalSpeed(Head) end
- if activeState ~= Enum.HumanoidStateType.Swimming and threshold > 0.1 then
- local splashSound = Sounds[SFX.Splash]
- splashSound.Volume = Util.Clamp(
- Util.YForLineGivenXAndTwoPts(
- Util.VerticalSpeed(Head),
- 100, 0.28,
- 350, 1),
- 0,1)
- Util.Play(splashSound)
- end
- do
- local sound = Sounds[SFX.Swimming]
- stopPlayingLoopedSoundsExcept(sound)
- Util.Resume(sound)
- setSoundInPlayingLoopedSounds(sound)
- end
- end;
- [Enum.HumanoidStateType.Climbing] = function(speed)
- local sound = Sounds[SFX.Climbing]
- if useUpdatedLocalSoundFlag then
- if speed ~= nil and math.abs(speed) > 0.1 then
- Util.Resume(sound)
- stopPlayingLoopedSoundsExcept(sound)
- else
- Util.Pause(sound)
- stopPlayingLoopedSoundsExcept(sound)
- end
- else
- if Util.VerticalSpeed(Head) > 0.1 then
- Util.Resume(sound)
- stopPlayingLoopedSoundsExcept(sound)
- else
- stopPlayingLoopedSoundsExcept()
- end
- end
- setSoundInPlayingLoopedSounds(sound)
- end;
- [Enum.HumanoidStateType.Jumping] = function()
- if activeState == Enum.HumanoidStateType.Jumping then
- return
- end
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.Jumping]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.GettingUp] = function()
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.GettingUp]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.Freefall] = function()
- if activeState == Enum.HumanoidStateType.Freefall then
- return
- end
- local sound = Sounds[SFX.FreeFalling]
- sound.Volume = 0
- stopPlayingLoopedSoundsExcept()
- fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.y))
- end;
- [Enum.HumanoidStateType.FallingDown] = function()
- stopPlayingLoopedSoundsExcept()
- end;
- [Enum.HumanoidStateType.Landed] = function()
- stopPlayingLoopedSoundsExcept()
- if Util.VerticalSpeed(Head) > 75 then
- local landingSound = Sounds[SFX.Landing]
- landingSound.Volume = Util.Clamp(
- Util.YForLineGivenXAndTwoPts(
- Util.VerticalSpeed(Head),
- 50, 0,
- 100, 1),
- 0,1)
- Util.Play(landingSound)
- end
- end;
- [Enum.HumanoidStateType.Seated] = function()
- stopPlayingLoopedSoundsExcept()
- end;
- }
- -- Handle state event fired or OnChange fired
- function stateUpdated(state, speed)
- if stateUpdateHandler[state] ~= nil then
- if useUpdatedLocalSoundFlag and (state == Enum.HumanoidStateType.Running
- or state == Enum.HumanoidStateType.Climbing
- or state == Enum.HumanoidStateType.Swimming
- or state == Enum.HumanoidStateType.RunningNoPhysics) then
- stateUpdateHandler[state](speed)
- else
- stateUpdateHandler[state]()
- end
- end
- activeState = state
- end
- Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
- Humanoid.Running:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Running, speed) end)
- Humanoid.Swimming:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Swimming, speed) end)
- Humanoid.Climbing:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Climbing, speed) end)
- Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
- Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
- Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
- Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
- -- required for proper handling of Landed event
- Humanoid.StateChanged:connect(function(old, new)
- stateUpdated(new)
- end)
- function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
- local stepScale = stepDeltaSeconds / tickSpeedSeconds
- do
- local sound = Sounds[SFX.FreeFalling]
- if activeState == Enum.HumanoidStateType.Freefall then
- if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
- Util.Resume(sound)
- --Volume takes 1.1 seconds to go from volume 0 to 1
- local ANIMATION_LENGTH_SECONDS = 1.1
- local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
- sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
- else
- sound.Volume = 0
- end
- else
- Util.Pause(sound)
- end
- end
- do
- local sound = Sounds[SFX.Running]
- if activeState == Enum.HumanoidStateType.Running then
- if Util.HorizontalSpeed(Head) < 0.5 then
- Util.Pause(sound)
- end
- end
- end
- end
- local lastTick = tick()
- local TICK_SPEED_SECONDS = 0.25
- while true do
- onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
- lastTick = tick()
- wait(TICK_SPEED_SECONDS)
- end
- end
- end))
- Script59.Name = "Health"
- Script59.Parent = Model2
- table.insert(cors,sandbox(Script59,function()
- -- Gradually regenerates the Humanoid's Health over time.
- local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
- local REGEN_STEP = 1 -- Wait this long between each regeneration step.
- --------------------------------------------------------------------------------
- local Character = script.Parent
- local Humanoid = Character:WaitForChild'Humanoid'
- --------------------------------------------------------------------------------
- while true do
- while Humanoid.Health < Humanoid.MaxHealth do
- local dt = wait(REGEN_STEP)
- local dh = dt*REGEN_RATE*Humanoid.MaxHealth
- Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
- end
- Humanoid.HealthChanged:Wait()
- end
- end))
- LocalScript60.Name = "Animate"
- LocalScript60.Parent = Model2
- table.insert(cors,sandbox(LocalScript60,function()
- local Figure = script.Parent
- local Torso = Figure:WaitForChild("Torso")
- local RightShoulder = Torso:WaitForChild("Right Shoulder")
- local LeftShoulder = Torso:WaitForChild("Left Shoulder")
- local RightHip = Torso:WaitForChild("Right Hip")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local Neck = Torso:WaitForChild("Neck")
- local Humanoid = Figure:WaitForChild("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 }
- },
- dance1 = {
- { 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 }
- },
- }
- local dances = {"dance1", "dance2", "dance3"}
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- 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
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- 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
- local repeatAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
- repeatAnim = "idle"
- end
- 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)
- currentAnimTrack.Priority = Enum.AnimationPriority.Core
- -- 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, priority)
- 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)
- if priority then
- toolAnimTrack.Priority = priority
- end
- -- 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)
- if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
- setAnimationSpeed(speed / 14.5)
- end
- pose = "Running"
- else
- if emoteNames[currentAnim] == nil then
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- 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, Enum.AnimationPriority.Idle)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
- 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
- local 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 and tool:FindFirstChild("Handle") then
- local 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)
- -- setup emote chat hook
- game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
- local emote = ""
- if msg == "/e dance" then
- emote = dances[math.random(1, #dances)]
- elseif (string.sub(msg, 1, 3) == "/e ") then
- emote = string.sub(msg, 4)
- elseif (string.sub(msg, 1, 7) == "/emote ") then
- emote = string.sub(msg, 8)
- end
- if (pose == "Standing" and emoteNames[emote] ~= nil) then
- playAnimation(emote, 0.1, Humanoid)
- end
- end)
- -- main program
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent ~= nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue61.Name = "idle"
- StringValue61.Parent = LocalScript60
- Animation62.Name = "Animation1"
- Animation62.Parent = StringValue61
- Animation62.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue63.Name = "Weight"
- NumberValue63.Parent = Animation62
- NumberValue63.Value = 9
- Animation64.Name = "Animation2"
- Animation64.Parent = StringValue61
- Animation64.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue65.Name = "Weight"
- NumberValue65.Parent = Animation64
- NumberValue65.Value = 1
- StringValue66.Name = "walk"
- StringValue66.Parent = LocalScript60
- Animation67.Name = "WalkAnim"
- Animation67.Parent = StringValue66
- Animation67.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue68.Name = "run"
- StringValue68.Parent = LocalScript60
- Animation69.Name = "RunAnim"
- Animation69.Parent = StringValue68
- Animation69.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue70.Name = "jump"
- StringValue70.Parent = LocalScript60
- Animation71.Name = "JumpAnim"
- Animation71.Parent = StringValue70
- Animation71.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue72.Name = "climb"
- StringValue72.Parent = LocalScript60
- Animation73.Name = "ClimbAnim"
- Animation73.Parent = StringValue72
- Animation73.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue74.Name = "toolnone"
- StringValue74.Parent = LocalScript60
- Animation75.Name = "ToolNoneAnim"
- Animation75.Parent = StringValue74
- Animation75.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue76.Name = "fall"
- StringValue76.Parent = LocalScript60
- Animation77.Name = "FallAnim"
- Animation77.Parent = StringValue76
- Animation77.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue78.Name = "sit"
- StringValue78.Parent = LocalScript60
- Animation79.Name = "SitAnim"
- Animation79.Parent = StringValue78
- Animation79.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- BodyColors80.Parent = Model2
- BodyColors80.HeadColor = BrickColor.new("Light orange")
- BodyColors80.LeftArmColor = BrickColor.new("Light orange")
- BodyColors80.LeftLegColor = BrickColor.new("Light orange")
- BodyColors80.RightArmColor = BrickColor.new("Light orange")
- BodyColors80.RightLegColor = BrickColor.new("Light orange")
- BodyColors80.TorsoColor = BrickColor.new("Light orange")
- CharacterMesh81.Parent = Model2
- CharacterMesh81.MeshId = 27111882
- CharacterMesh81.BodyPart = Enum.BodyPart.RightLeg
- Shirt82.Name = "Shirt"
- Shirt82.Parent = Model2
- Shirt82.ShirtTemplate = "http://www.roblox.com/asset/?id=1024462364"
- Accessory83.Name = "SnowyOwlWings"
- Accessory83.Parent = Model2
- Accessory83.AttachmentPos = Vector3.new(0, 1.79999995, 0)
- Part84.Name = "Handle"
- Part84.Parent = Accessory83
- Part84.CanCollide = false
- Part84.Locked = true
- Part84.FormFactor = Enum.FormFactor.Custom
- Part84.Size = Vector3.new(0.671016872, 0.206240326, 0.554817736)
- Part84.CFrame = CFrame.new(0, 1.01668024, 0.686051667, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part84.BottomSurface = Enum.SurfaceType.Smooth
- Part84.TopSurface = Enum.SurfaceType.Smooth
- Part84.Position = Vector3.new(0, 1.01668024, 0.686051667)
- SpecialMesh85.Parent = Part84
- SpecialMesh85.MeshId = "rbxassetid://1179223095"
- SpecialMesh85.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- SpecialMesh85.TextureId = "rbxassetid://1241033906"
- SpecialMesh85.MeshType = Enum.MeshType.FileMesh
- SpecialMesh85.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- Attachment86.Name = "BodyBackAttachment"
- Attachment86.Parent = Part84
- Attachment86.CFrame = CFrame.new(0, -0.145240009, -0.20333606, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment86.Position = Vector3.new(0, -0.145240009, -0.20333606)
- Weld87.Name = "AccessoryWeld"
- Weld87.Parent = Part84
- Weld87.C0 = CFrame.new(0, -0.145240009, -0.20333606, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld87.C1 = CFrame.new(0, 0, 0.145240009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld87.Part0 = Part84
- Weld87.Part1 = Part28
- CharacterMesh88.Parent = Model2
- CharacterMesh88.MeshId = 27111857
- CharacterMesh88.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh89.Name = "Roblox 2.0 Right Arm"
- CharacterMesh89.Parent = Model2
- CharacterMesh89.MeshId = 27111864
- CharacterMesh89.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh90.Parent = Model2
- CharacterMesh90.MeshId = 27111419
- CharacterMesh90.BodyPart = Enum.BodyPart.LeftArm
- ShirtGraphic91.Parent = Model2
- ShirtGraphic91.Graphic = "http://www.roblox.com/asset/?id=1394291048"
- CharacterMesh92.Parent = Model2
- CharacterMesh92.MeshId = 27111894
- CharacterMesh92.BodyPart = Enum.BodyPart.Torso
- Accessory93.Name = "HolidayReefCrown"
- Accessory93.Parent = Model2
- Part94.Name = "Handle"
- Part94.Parent = Accessory93
- Part94.CanCollide = false
- Part94.Locked = true
- Part94.FormFactor = Enum.FormFactor.Custom
- Part94.Size = Vector3.new(0.551911473, 0.174288005, 0.580960214)
- Part94.CFrame = CFrame.new(-2.28644192e-09, 1.45240033, 0.337554693, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
- Part94.BottomSurface = Enum.SurfaceType.Smooth
- Part94.TopSurface = Enum.SurfaceType.Smooth
- Part94.Position = Vector3.new(-2.28644192e-09, 1.45240033, 0.337554693)
- SpecialMesh95.Parent = Part94
- SpecialMesh95.MeshId = "http://www.roblox.com/asset/?id=138937497"
- SpecialMesh95.Scale = Vector3.new(0.217860103, 0.217860103, 0.217860103)
- SpecialMesh95.TextureId = "http://www.roblox.com/asset/?id=138937524 "
- SpecialMesh95.MeshType = Enum.MeshType.FileMesh
- SpecialMesh95.Scale = Vector3.new(0.217860103, 0.217860103, 0.217860103)
- Attachment96.Name = "HatAttachment"
- Attachment96.Parent = Part94
- Attachment96.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Attachment96.CFrame = CFrame.new(2.51508969e-09, 0.0290479958, -7.90815466e-05, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Attachment96.Position = Vector3.new(2.51508969e-09, 0.0290479958, -7.90815466e-05)
- Attachment96.Axis = Vector3.new(1, -7.87137555e-09, 0)
- Attachment96.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Vector3Value97.Name = "OriginalSize"
- Vector3Value97.Parent = Part94
- Vector3Value97.Value = Vector3.new(1.89999771, 0.599999845, 2.00000024)
- Weld98.Name = "AccessoryWeld"
- Weld98.Parent = Part94
- Weld98.C0 = CFrame.new(2.51508969e-09, 0.0290479958, -7.90815466e-05, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Weld98.C1 = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld98.Part0 = Part94
- Weld98.Part1 = Part3
- Pants99.Name = "Pants"
- Pants99.Parent = Model2
- Pants99.PantsTemplate = "http://www.roblox.com/asset/?id=1068407713"
- Accessory100.Name = "BearMask"
- Accessory100.Parent = Model2
- Accessory100.AttachmentPos = Vector3.new(0, 0.730000019, 0.0199999996)
- Part101.Name = "Handle"
- Part101.Parent = Accessory100
- Part101.CanCollide = false
- Part101.Locked = true
- Part101.FormFactor = Enum.FormFactor.Custom
- Part101.Size = Vector3.new(0.34857583, 0.174288005, 0.348576099)
- Part101.CFrame = CFrame.new(5.25889665e-10, 1.24034989, 0.32876122, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Position = Vector3.new(5.25889665e-10, 1.24034989, 0.32876122)
- SpecialMesh102.Parent = Part101
- SpecialMesh102.MeshId = "rbxassetid://1192459566"
- SpecialMesh102.Scale = Vector3.new(0.580960035, 0.580960035, 0.580960035)
- SpecialMesh102.TextureId = "rbxassetid://1467298640"
- SpecialMesh102.MeshType = Enum.MeshType.FileMesh
- SpecialMesh102.Scale = Vector3.new(0.580960035, 0.580960035, 0.580960035)
- Vector3Value103.Name = "OriginalSize"
- Vector3Value103.Parent = Part101
- Vector3Value103.Value = Vector3.new(1.19999909, 0.599999845, 1.20000005)
- Attachment104.Name = "FaceFrontAttachment"
- Attachment104.Parent = Part101
- Attachment104.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Attachment104.CFrame = CFrame.new(0, 0.0668103918, -0.165573686, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Attachment104.Position = Vector3.new(0, 0.0668103918, -0.165573686)
- Attachment104.Axis = Vector3.new(1, -7.87137555e-09, 0)
- Attachment104.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Weld105.Name = "AccessoryWeld"
- Weld105.Parent = Part101
- Weld105.C0 = CFrame.new(0, 0.0668103918, -0.165573686, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Weld105.C1 = CFrame.new(0, 0, -0.174288049, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld105.Part0 = Part101
- Weld105.Part1 = Part3
- Accessory106.Name = "LongHairHeadBand"
- Accessory106.Parent = Model2
- Accessory106.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
- Accessory106.AttachmentPos = Vector3.new(0, 0.899999976, 0)
- Accessory106.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
- Part107.Name = "Handle"
- Part107.Parent = Accessory106
- Part107.Rotation = Vector3.new(5.71000004, 0, 0)
- Part107.CanCollide = false
- Part107.Locked = true
- Part107.FormFactor = Enum.FormFactor.Plate
- Part107.Size = Vector3.new(0.290480077, 0.697152197, 0.580960155)
- Part107.CFrame = CFrame.new(-2.38823988e-10, 1.19226563, 0.3115412, 1, -7.83231258e-09, 7.83188625e-10, 7.87137289e-09, 0.995037198, -0.0995037183, 4.24105195e-14, 0.0995037183, 0.995037198)
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.TopSurface = Enum.SurfaceType.Smooth
- Part107.Position = Vector3.new(-2.38823988e-10, 1.19226563, 0.3115412)
- Part107.Orientation = Vector3.new(5.71000004, 0, 0)
- SpecialMesh108.Parent = Part107
- SpecialMesh108.MeshId = "http://www.roblox.com/asset/?id=13070796"
- SpecialMesh108.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- SpecialMesh108.TextureId = "http://www.roblox.com/asset/?id=292357315 "
- SpecialMesh108.MeshType = Enum.MeshType.FileMesh
- SpecialMesh108.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- Attachment109.Name = "HairAttachment"
- Attachment109.Parent = Part107
- Attachment109.Rotation = Vector3.new(-5.71059322, 2.42994383e-12, -4.50996453e-07)
- Attachment109.CFrame = CFrame.new(2.51508969e-09, 0.290328085, -0.00296907593, 1, 7.87137289e-09, 4.24105195e-14, -7.83231258e-09, 0.995037198, 0.0995037183, 7.83188625e-10, -0.0995037183, 0.995037198)
- Attachment109.Position = Vector3.new(2.51508969e-09, 0.290328085, -0.00296907593)
- Attachment109.Axis = Vector3.new(1, -7.83231258e-09, 7.83188625e-10)
- Attachment109.Orientation = Vector3.new(-5.71059322, 2.44206326e-12, -4.50996652e-07)
- Vector3Value110.Name = "OriginalSize"
- Vector3Value110.Parent = Part107
- Vector3Value110.Value = Vector3.new(1, 2.4000001, 2)
- Weld111.Name = "AccessoryWeld"
- Weld111.Parent = Part107
- Weld111.C0 = CFrame.new(2.51508969e-09, 0.290328085, -0.00296907593, 1, 7.87137289e-09, 4.24105195e-14, -7.83231258e-09, 0.995037198, 0.0995037183, 7.83188625e-10, -0.0995037183, 0.995037198)
- Weld111.C1 = CFrame.new(0, 0.174288049, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld111.Part0 = Part107
- Weld111.Part1 = Part3
- Accessory112.Name = "FriendlySnowfOX"
- Accessory112.Parent = Model2
- Accessory112.AttachmentPos = Vector3.new(0, 1.79999995, 0)
- Part113.Name = "Handle"
- Part113.Parent = Accessory112
- Part113.CanCollide = false
- Part113.Locked = true
- Part113.FormFactor = Enum.FormFactor.Custom
- Part113.Size = Vector3.new(0.209153548, 0.383433163, 0.554817736)
- Part113.CFrame = CFrame.new(0.290480018, 1.35073221, 0.366523594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part113.BottomSurface = Enum.SurfaceType.Smooth
- Part113.TopSurface = Enum.SurfaceType.Smooth
- Part113.Position = Vector3.new(0.290480018, 1.35073221, 0.366523594)
- SpecialMesh114.Parent = Part113
- SpecialMesh114.MeshId = "rbxassetid://1241037817"
- SpecialMesh114.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- SpecialMesh114.TextureId = "rbxassetid://1241038471"
- SpecialMesh114.MeshType = Enum.MeshType.FileMesh
- SpecialMesh114.Scale = Vector3.new(0.290480018, 0.290480018, 0.290480018)
- Attachment115.Name = "RightCollarAttachment"
- Attachment115.Parent = Part113
- Attachment115.CFrame = CFrame.new(0, -0.188812032, -0.029048007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment115.Position = Vector3.new(0, -0.188812032, -0.029048007)
- Weld116.Name = "AccessoryWeld"
- Weld116.Parent = Part113
- Weld116.C0 = CFrame.new(0, -0.188812032, -0.029048007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld116.C1 = CFrame.new(0.290480018, 0.290480018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld116.Part0 = Part113
- Weld116.Part1 = Part28
- Weld117.Parent = Model2
- Weld117.Part0 = Part28
- Weld117.Part1 = Part1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- 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