Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- mouse = Player:GetMouse()
- UserInputService = game:GetService("UserInputService")
- --ToolFunction = game:GetService(too)
- RenderStepped = game:GetService("RunService").RenderStepped
- local ts = game:GetService("TweenService")
- --[[
- if you find this please dont sell it without my permission
- if you do ill teleport every cookie that you get to my house for the rest of your life
- made by ceat_ceat
- shion wit da bepis#6144
- ]]
- local plr = Player
- local chr = plr.Character
- local head = chr.Head
- local torso = chr.Torso
- local hrp = chr.HumanoidRootPart
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local mouse = Mouse
- local hum = chr.Humanoid
- local animspeed = 1/3
- local nowhy = 0
- local attack = false
- hum.WalkSpeed = 45
- -- shortcuts
- local cn = CFrame.new
- local ca = CFrame.Angles
- local rad = math.rad
- local random = math.random
- local sin = math.sin
- local cos = math.cos
- local v3 = Vector3.new
- local v2 = Vector2.new
- local c3 = Color3.fromRGB
- local abs = math.abs
- local inf = math.huge
- local floor = math.floor
- local ceil = math.ceil
- local cseq = ColorSequence.new
- local cseqk = ColorSequenceKeypoint.new
- local nseq = NumberSequence.new
- local nseqk = NumberSequenceKeypoint.new
- local clamp = math.clamp
- local workspace = game:GetService("Workspace")
- -- functions
- function change(instance, properties)
- for i, v in pairs(properties) do
- instance[i] = v
- end
- end
- function create(class, properties)
- local thing = Instance.new(class)
- change(thing, properties)
- if thing:IsA("BasePart") then
- thing.Locked = true
- if not thing.Anchored then
- thing:SetNetworkOwner(nil)
- end
- end
- return thing
- end
- function debris(instance, delay)
- game:GetService("Debris"):AddItem(instance, delay)
- end
- function playsound(id, parent, volume)
- local sound = create("Sound", {
- Parent = parent,
- SoundId = string.format("rbxassetid://%s",tostring(id)),
- Volume = volume
- })
- sound:Play()
- debris(sound, sound.TimeLength)
- return sound
- end
- function raycast(origin, direction, range, ignore)
- return workspace:FindPartOnRay(Ray.new(origin, direction*range), ignore)
- end
- function tween(instance, properties, duration, direction, easing)
- local ease = Enum.EasingStyle.Quad
- if easing then ease = easing end
- ts:Create(instance,TweenInfo.new(duration,ease,direction),properties):Play()
- end
- function randomstring()
- local e = {}
- for i = 1,random(5,50) do
- table.insert(e,#e+1,utf8.char(random(10,132)))
- end
- return table.concat(e)
- end
- -- chr setup
- local fx = create("Model",{
- Parent = chr,
- Name = "Effects"
- })
- for i, v in pairs(chr:GetChildren()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") or v:IsA("BodyColors") then
- v:Destroy()
- end
- end
- BodyColors0 = Instance.new("BodyColors")
- BodyColors0.Name = "bc"
- BodyColors0.Parent = script
- BodyColors0.HeadColor = BrickColor.new("Pastel brown")
- BodyColors0.HeadColor3 = Color3.new(1, 0.8, 0.6)
- BodyColors0.LeftArmColor = BrickColor.new("Pastel brown")
- BodyColors0.LeftArmColor3 = Color3.new(1, 0.8, 0.6)
- BodyColors0.LeftLegColor = BrickColor.new("Pastel brown")
- BodyColors0.LeftLegColor3 = Color3.new(1, 0.8, 0.6)
- BodyColors0.RightArmColor = BrickColor.new("Pastel brown")
- BodyColors0.RightArmColor3 = Color3.new(1, 0.8, 0.6)
- BodyColors0.RightLegColor = BrickColor.new("Pastel brown")
- BodyColors0.RightLegColor3 = Color3.new(1, 0.8, 0.6)
- BodyColors0.TorsoColor = BrickColor.new("Pastel brown")
- BodyColors0.TorsoColor3 = Color3.new(1, 0.8, 0.6)
- script.bc.Parent = chr
- create("Shirt",{
- Parent = chr,
- ShirtTemplate = "rbxassetid://3017942434"
- })
- create("Pants",{
- Parent = chr,
- PantsTemplate = "rbxassetid://6142168018"
- })
- head.face:Destroy()
- local facethingidk = create("Part",{
- Parent = head,
- CanCollide = false,
- Size = v3(1.5,1,1.25),
- Transparency = 1,
- })
- create("Decal",{
- Parent = facethingidk,
- Texture = "http://www.roblox.com/asset/?id=1801738430"
- })
- create("Weld",{
- Parent = head,
- Part0 = head,
- Part1 = facethingidk
- })
- hum.DisplayName = "Cirno"
- local chrcontainer = create("VelocityMotor",{
- Parent = workspace,
- Name = randomstring()
- })
- chr.Parent = chrcontainer
- local hc0 = cn(0,1.5,0)
- local lac0 = cn(-1.5,0,0)
- local rac0 = cn(1.5,0,0)
- local llc0 = cn(-0.5,-2,0)
- local rlc0 = cn(0.5,-2,0)
- local headweld = create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = head,
- C0 = hc0
- })
- local laweld = create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = larm,
- C0 = lac0
- })
- local raweld = create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = rarm,
- C0 = rac0
- })
- local llweld = create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = lleg,
- C0 = llc0
- })
- local rlweld = create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = rleg,
- C0 = rlc0
- })
- local torsoweld = create("Weld",{
- Parent = hrp,
- Part0 = hrp,
- Part1 = torso,
- })
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Model2 = Instance.new("Model")
- Model3 = Instance.new("Model")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Weld6 = Instance.new("Weld")
- Weld7 = Instance.new("Weld")
- Weld8 = Instance.new("Weld")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Part13 = Instance.new("Part")
- Model14 = Instance.new("Model")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Weld17 = Instance.new("Weld")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Part20 = Instance.new("Part")
- SpecialMesh21 = Instance.new("SpecialMesh")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- SpecialMesh24 = Instance.new("SpecialMesh")
- Part25 = Instance.new("Part")
- SpecialMesh26 = Instance.new("SpecialMesh")
- Part27 = Instance.new("Part")
- SpecialMesh28 = Instance.new("SpecialMesh")
- Weld29 = Instance.new("Weld")
- Weld30 = Instance.new("Weld")
- Part31 = Instance.new("Part")
- SpecialMesh32 = Instance.new("SpecialMesh")
- Model0.Name = "chrmod"
- Model0.Parent = script
- Part1.Name = "t"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-25.3589325, 16.0000534, 7.55558395, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Position = Vector3.new(-25.3589325, 16.0000534, 7.55558395)
- Part1.Rotation = Vector3.new(0, -90, 0)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(2, 2, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Model2.Name = "wings"
- Model2.Parent = Part1
- Model3.Name = "set1"
- Model3.Parent = Model2
- Part4.Name = "a"
- Part4.Parent = Model3
- Part4.CFrame = CFrame.new(-26.4461708, 14.8002176, 9.57639885, -0.965915322, 0.224141896, 0.129407808, -9.02771617e-08, 0.49999541, -0.866015613, -0.258815765, -0.836508572, -0.482957095)
- Part4.Orientation = Vector3.new(60, 165, 0)
- Part4.Position = Vector3.new(-26.4461708, 14.8002176, 9.57639885)
- Part4.Rotation = Vector3.new(119.150002, 7.44000006, -166.940002)
- Part4.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part4.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part4.BrickColor = BrickColor.new("Pastel blue-green")
- Part4.CanCollide = false
- Part4.Reflectance = 0.5
- Part4.brickColor = BrickColor.new("Pastel blue-green")
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.formFactor = Enum.FormFactor.Custom
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh5.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Weld6.Name = "BTWeld"
- Weld6.Parent = Part4
- Weld6.C1 = CFrame.new(0, -1.14996338, -1.99179077, 0.999995947, -1.34110451e-07, 2.23517418e-08, 5.96046448e-08, -0.499998301, -0.866021752, -5.21540642e-08, 0.866022527, -0.499997973)
- Weld6.Part0 = Part4
- Weld6.Part1 = Part9
- Weld6.part1 = Part9
- Weld7.Name = "BTWeld"
- Weld7.Parent = Part4
- Weld7.C1 = CFrame.new(2.02082062, -1.19985104, 0.399734497, -0.258818001, -0.836514294, -0.482961208, 2.5218605e-09, 0.499998689, -0.866022706, 0.965923131, -0.224143267, -0.129408911)
- Weld7.Part0 = Part4
- Weld7.Part1 = Part13
- Weld7.part1 = Part13
- Weld8.Name = "BTWeld"
- Weld8.Parent = Part4
- Weld8.C1 = CFrame.new(-1.52587891e-05, -0.200847626, -1.19996405, 0.999995947, -1.34110451e-07, 2.98023224e-08, 4.47034836e-08, -0.866022468, -0.499997854, 6.51816379e-11, 0.499998361, -0.866021872)
- Weld8.Part0 = Part4
- Weld8.Part1 = Part11
- Weld8.part1 = Part11
- Part9.Name = "c"
- Part9.Parent = Model3
- Part9.CFrame = CFrame.new(-26.4461708, 17.1001072, 9.57639694, -0.965911448, -0.224140614, 0.12940833, -1.76688374e-07, 0.499991536, 0.866013348, -0.258814603, 0.836504161, -0.482957721)
- Part9.Orientation = Vector3.new(-60, 165, 0)
- Part9.Position = Vector3.new(-26.4461708, 17.1001072, 9.57639694)
- Part9.Rotation = Vector3.new(-119.150002, 7.44000006, 166.940002)
- Part9.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part9.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part9.BrickColor = BrickColor.new("Pastel blue-green")
- Part9.CanCollide = false
- Part9.Reflectance = 0.5
- Part9.brickColor = BrickColor.new("Pastel blue-green")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh10.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh10.MeshType = Enum.MeshType.FileMesh
- Part11.Name = "b"
- Part11.Parent = Model3
- Part11.CFrame = CFrame.new(-26.4981689, 16.0001736, 9.77039623, -0.965919256, -0.258817315, 3.12924385e-07, -9.03426809e-08, -5.96046448e-07, 0.999993086, -0.258816838, 0.965919733, -8.04662704e-07)
- Part11.Orientation = Vector3.new(-89.7900009, 158.75, -171.380005)
- Part11.Position = Vector3.new(-26.4981689, 16.0001736, 9.77039623)
- Part11.Rotation = Vector3.new(-90, 0, 165)
- Part11.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part11.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part11.BrickColor = BrickColor.new("Pastel blue-green")
- Part11.CanCollide = false
- Part11.Reflectance = 0.5
- Part11.brickColor = BrickColor.new("Pastel blue-green")
- Part11.FormFactor = Enum.FormFactor.Custom
- Part11.formFactor = Enum.FormFactor.Custom
- SpecialMesh12.Parent = Part11
- SpecialMesh12.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh12.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- Part13.Name = "core"
- Part13.Parent = Model3
- Part13.CFrame = CFrame.new(-26.0464401, 16.0000553, 7.55560255, -5.73694706e-07, 5.58793545e-07, -0.99998641, -1.34110451e-06, 0.999986291, -5.58793545e-07, 0.999987125, -1.37090683e-06, 5.77419996e-07)
- Part13.Orientation = Vector3.new(0, -90, 0)
- Part13.Position = Vector3.new(-26.0464401, 16.0000553, 7.55560255)
- Part13.Rotation = Vector3.new(44.0600014, -89.6999969, -135.75)
- Part13.Transparency = 1
- Part13.Size = Vector3.new(0.25, 0.25, 0.125)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.CanCollide = false
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Model14.Name = "set2"
- Model14.Parent = Model2
- Part15.Name = "a"
- Part15.Parent = Model14
- Part15.CFrame = CFrame.new(-26.4461918, 14.8002167, 5.50752926, 0.965925932, 0.224144429, 0.129409939, -2.39142395e-09, 0.500000179, -0.866025329, -0.258818954, 0.836515844, 0.482962936)
- Part15.Orientation = Vector3.new(60, 15, 0)
- Part15.Position = Vector3.new(-26.4461918, 14.8002167, 5.50752926)
- Part15.Rotation = Vector3.new(60.8499985, 7.44000006, -13.0600004)
- Part15.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part15.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part15.BrickColor = BrickColor.new("Pastel blue-green")
- Part15.CanCollide = false
- Part15.Reflectance = 0.5
- Part15.brickColor = BrickColor.new("Pastel blue-green")
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.formFactor = Enum.FormFactor.Custom
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh16.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- Weld17.Name = "BTWeld"
- Weld17.Parent = Part15
- Weld17.C1 = CFrame.new(-2.38418579e-05, -0.200839996, -1.19995654, 1.00000012, 2.38418579e-07, 1.49011612e-07, -2.98023224e-07, -0.866025329, -0.5, 6.51709797e-11, 0.5, -0.866025448)
- Weld17.Part0 = Part15
- Weld17.Part1 = Part23
- Weld17.part1 = Part23
- Weld18.Name = "BTWeld"
- Weld18.Parent = Part15
- Weld18.C1 = CFrame.new(-9.53674316e-07, -1.14995193, -1.99178123, 1, 5.06639481e-07, 2.98023224e-07, -5.06639481e-07, -0.499999762, -0.866025448, 2.83122063e-07, 0.866025329, -0.500000119)
- Weld18.Part0 = Part15
- Weld18.Part1 = Part20
- Weld18.part1 = Part20
- Weld19.Name = "BTWeld"
- Weld19.Parent = Part15
- Weld19.C1 = CFrame.new(-2.04804993, -1.19984305, 0.399753571, -0.258818954, 0.836515844, 0.482962936, -2.39142395e-09, 0.500000179, -0.866025329, -0.965925932, -0.224144414, -0.129409939)
- Weld19.Part0 = Part15
- Weld19.Part1 = Part22
- Weld19.part1 = Part22
- Part20.Name = "b"
- Part20.Parent = Model14
- Part20.CFrame = CFrame.new(-26.4461899, 17.1001263, 5.50753117, 0.965926111, -0.224144965, 0.129410043, -7.167273e-09, 0.5, 0.866025567, -0.258818388, -0.836515784, 0.48296231)
- Part20.Orientation = Vector3.new(-60, 15, 0)
- Part20.Position = Vector3.new(-26.4461899, 17.1001263, 5.50753117)
- Part20.Rotation = Vector3.new(-60.8499985, 7.44000006, 13.0600004)
- Part20.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part20.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part20.BrickColor = BrickColor.new("Pastel blue-green")
- Part20.CanCollide = false
- Part20.Reflectance = 0.5
- Part20.brickColor = BrickColor.new("Pastel blue-green")
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.formFactor = Enum.FormFactor.Custom
- SpecialMesh21.Parent = Part20
- SpecialMesh21.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh21.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh21.MeshType = Enum.MeshType.FileMesh
- Part22.Name = "core"
- Part22.Parent = Model14
- Part22.CFrame = CFrame.new(-26.0464363, 16.0000591, 7.55557775, 6.33299351e-07, -2.98023224e-08, -1.00000048, -5.96046448e-08, 1, 3.7252903e-08, 0.999999225, -5.96046448e-08, -6.1839819e-07)
- Part22.Orientation = Vector3.new(0, -90, 0)
- Part22.Position = Vector3.new(-26.0464363, 16.0000591, 7.55557775)
- Part22.Rotation = Vector3.new(0, -90, 0)
- Part22.Transparency = 1
- Part22.Size = Vector3.new(0.25, 0.25, 0.125)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.CanCollide = false
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part23.Name = "c"
- Part23.Parent = Model14
- Part23.CFrame = CFrame.new(-26.4981499, 16.0001736, 5.31352615, 0.965925753, -0.258819491, -5.16210541e-08, -2.45665688e-09, -2.08616328e-07, 1, -0.258819222, -0.965925574, -2.02143966e-07)
- Part23.Orientation = Vector3.new(-90, 15, 0)
- Part23.Position = Vector3.new(-26.4981499, 16.0001736, 5.31352615)
- Part23.Rotation = Vector3.new(-90, 0, 15)
- Part23.Color = Color3.new(0.623529, 0.952941, 0.913725)
- Part23.Size = Vector3.new(0.600000024, 3.60000038, 0.600000024)
- Part23.BrickColor = BrickColor.new("Pastel blue-green")
- Part23.CanCollide = false
- Part23.Reflectance = 0.5
- Part23.brickColor = BrickColor.new("Pastel blue-green")
- Part23.FormFactor = Enum.FormFactor.Custom
- Part23.formFactor = Enum.FormFactor.Custom
- SpecialMesh24.Parent = Part23
- SpecialMesh24.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh24.Scale = Vector3.new(0.100000001, 3, 0.600000024)
- SpecialMesh24.MeshType = Enum.MeshType.FileMesh
- Part25.Name = "h"
- Part25.Parent = Model0
- Part25.CFrame = CFrame.new(-26.262001, 18.9929867, 7.11399937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part25.Position = Vector3.new(-26.262001, 18.9929867, 7.11399937)
- Part25.Transparency = 1
- Part25.Size = Vector3.new(2, 1, 1)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.CanCollide = false
- Part25.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh26.Parent = Part25
- SpecialMesh26.Scale = Vector3.new(1.25, 1.25, 1.25)
- Part27.Name = "MeshPart"
- Part27.Parent = Part25
- Part27.CFrame = CFrame.new(-26.2299995, 18.9329872, 7.21000004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part27.Position = Vector3.new(-26.2299995, 18.9329872, 7.21000004)
- Part27.Color = Color3.new(0.596078, 0.760784, 0.858824)
- Part27.Size = Vector3.new(2.39700007, 2.48600006, 1.70700002)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.BrickColor = BrickColor.new("Baby blue")
- Part27.Material = Enum.Material.Sand
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.brickColor = BrickColor.new("Baby blue")
- SpecialMesh28.Parent = Part27
- SpecialMesh28.MeshId = "http://www.roblox.com/asset/?id=398987591"
- SpecialMesh28.MeshType = Enum.MeshType.FileMesh
- Weld29.Name = "BTWeld"
- Weld29.Parent = Part27
- Weld29.C1 = CFrame.new(0.0320014954, -0.0599999428, 0.0960006714, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld29.Part0 = Part27
- Weld29.Part1 = Part25
- Weld29.part1 = Part25
- Weld30.Name = "BTWeld"
- Weld30.Parent = Part27
- Weld30.C1 = CFrame.new(0, -0.25, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld30.Part0 = Part27
- Weld30.Part1 = Part31
- Weld30.part1 = Part31
- Part31.Name = "MeshPart"
- Part31.Parent = Part25
- Part31.CFrame = CFrame.new(-26.2299995, 19.1829872, 7.71000004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part31.Position = Vector3.new(-26.2299995, 19.1829872, 7.71000004)
- Part31.Color = Color3.new(0.431373, 0.6, 0.792157)
- Part31.Size = Vector3.new(2.39700007, 2.48600006, 1.70700002)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Medium blue")
- Part31.Material = Enum.Material.Sand
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Medium blue")
- SpecialMesh32.Parent = Part31
- SpecialMesh32.MeshId = "rbxassetid://3910639768"
- SpecialMesh32.MeshType = Enum.MeshType.FileMesh
- local chrmod = script.chrmod
- chrmod.Parent = chr
- create("Weld",{
- Parent = torso,
- Part0 = torso,
- Part1 = chrmod.t
- })
- create("Weld",{
- Parent = head,
- Part0 = head,
- Part1 = chrmod.h
- })
- local wings = chrmod.t.wings
- local wingpieces = {wings.set1.a,wings.set1.b,wings.set1.c,wings.set2.a,wings.set2.b,wings.set2.c}
- -- bgm
- local bgmstarttime = tick()
- local bgm = create("Sound",{
- Parent = torso
- })
- local musicchoice = "rbxassetid://2908188242"
- torso.ChildRemoved:Connect(function(thing)
- if thing == bgm then
- bgm = create("Sound",{
- Parent = torso,
- })
- local _change = false
- bgm.Changed:Connect(function()
- if _change then return end
- _change = true
- change(bgm,{
- Name = "BGM",
- SoundId = musicchoice,
- Volume = 1.5,
- Pitch = 1,
- Looped = true,
- Playing = true,
- TimePosition = tick()-bgmstarttime,
- })
- bgm.SoundGroup = nil
- _change = false
- end)
- bgm.Ended:Connect(function()
- bgmstarttime = tick()
- bgm.Name = "cmon play"
- end)
- bgm.Name = "cmon play"
- end
- end)
- bgm:Destroy()
- -- hb
- local hb = create("BindableEvent",{
- Parent = script,
- Name = "ArtificialHB"
- })
- local frame = 1/60
- local tf = 0
- local allowframeloss = false
- local tossremainder = false
- local lastframe = tick()
- hb:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- hb:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- hb:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(j)
- if j == 0 or j == nil then
- for i = 1, 2 do
- hb.Event:wait()
- end
- else
- for i = 1, j do
- hb.Event:wait()
- end
- end
- end
- -- attacks
- function damage(humanoid, dmg)
- if humanoid:FindFirstAncestor(plr.Name) then return end
- local ff = humanoid.Parent:FindFirstChildOfClass("ForceField")
- if ff then ff:Destroy() end
- humanoid.MaxHealth = 100
- if humanoid.Health > 100 then humanoid.Health = 100 end
- humanoid:TakeDamage(dmg)
- end
- function freezeballidk()
- if attack then return end
- attack = true
- delay(0.6,function()
- attack = false
- end)
- local gyro = create("BodyGyro",{
- Parent = hrp,
- MaxTorque = v3(0,400000,0),
- P = 32000,
- CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- })
- local orb = create("Part",{
- Parent = fx,
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- Shape = Enum.PartType.Ball,
- Anchored = true,
- CanCollide = false,
- CFrame = torso.CFrame * cn(0,0,-3),
- Size = v3()
- })
- tween(orb,{Size=v3(2.5,2.5,2.5)},0.6,Enum.EasingDirection.Out)
- local count = 0
- local release = false
- local exist = true
- spawn(function()
- repeat
- local particle = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- Size = v3(3,3,3),
- CFrame = orb.CFrame * ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360))),
- Transparency = 0.6
- })
- local dur = random(3,5)/8
- tween(particle,{Size=v3(),Orientation=v3(random(0,360),random(0,360),random(0,360)),Transparency=1},dur,Enum.EasingDirection.In)
- debris(particle,dur)
- swait()
- until not exist
- end)
- repeat
- laweld.C0 = laweld.C0:Lerp(lac0*cn(0.0059967041,0.25,-0.990997314)*ca(0,rad(7.5),0)*ca(rad(90),0,0),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(-0.0059967041,0.25,-0.990997314)*ca(0,rad(7.5),0)*ca(rad(90),0,0),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),0,0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),0,0),animspeed)
- gyro.CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- orb.CFrame = orb.CFrame:Lerp(torso.CFrame*cn(0,0,-3),animspeed*2)
- swait()
- until not attack
- release = true
- gyro:Destroy()
- spawn(function()
- repeat
- if release then
- count = count + 1
- local hit, pos = raycast(orb.Position,cn(orb.Position,mouse.Hit.p).LookVector,2,chr)
- if hit then
- exist = false
- else
- orb.CFrame = cn(orb.Position,mouse.Hit.p) * cn(0,0,-2)
- end
- end
- swait()
- until count > 100 or not exist
- orb:Destroy()
- exist = false
- local hitbox = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Transparency = 1,
- Size = v3(14,14,14),
- Shape = Enum.PartType.Ball,
- Position = orb.Position
- })
- for i = 1, 2 do
- local poof = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Light blue"),
- Material = Enum.Material.Ice,
- Transparency = 0.25,
- Size = v3(14,14,14),
- CFrame = orb.CFrame * ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))
- })
- tween(poof,{Size=v3(),Orientation=v3(random(0,360),random(0,360),random(0,360)),Transparency=1},1.25,Enum.EasingDirection.Out)
- debris(poof,1.25)
- end
- hitbox.Touched:Connect(function()end)
- playsound(633759810,hitbox,2)
- for i, v in pairs(hitbox:GetTouchingParts()) do
- if v:FindFirstAncestor(plr.Name) == nil then
- local _hum = v.Parent:FindFirstChildOfClass("Humanoid")
- if _hum then
- if _hum.Parent:FindFirstChild("frozen") == nil then
- debris(create("BoolValue",{
- Parent = _hum.Parent,
- Name = "frozen"
- }),2)
- local root = _hum.Parent:FindFirstChild("HumanoidRootPart") or _hum.Parent:FindFirstChild("Torso") or _hum.Parent:FindFirstChild("UpperTorso")
- root.Anchored = true
- local ice = create("Part",{
- Parent = fx,
- Anchored = true,
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- CFrame = root.CFrame * ca(0,rad(random(0,360)),0),
- Size = v3(5,7,5),
- Transparency = 0.4
- })
- delay(2, function()
- root.Anchored = false
- ice.Transparency = 1
- playsound(5859341051,ice,2)
- damage(_hum,random(30,40))
- local yes = {cn(1.25,1.75,1.25),cn(-1.25,1.75,1.25),cn(-1.25,1.75,-1.25),cn(1.25,1.75,-1.25),cn(1.25,-1.75,1.25),cn(-1.25,-1.75,1.25),cn(-1.25,-1.75,-1.25),cn(1.25,-1.75,-1.25)}
- for e, p in pairs(yes) do
- local h = create("Part",{
- Parent = fx,
- CanCollide = false,
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- CFrame = ice.CFrame * p,
- Size = v3(2.5,3.5,2.5),
- Transparency = 0.4,
- Velocity = v3(random(-40,40),random(15,45),random(-40,40)),
- RotVelocity = v3(random(-25,25),random(-25,25),random(-25,25))
- })
- debris(h,random(4,6)/5)
- end
- debris(ice,2)
- end)
- end
- end
- end
- end
- debris(hitbox,2)
- end)
- end
- function detachmywingsouchouchmywingsaregone()
- if attack then return end
- attack = true
- hum.WalkSpeed = 0
- spawn(function()
- repeat
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.150001526,0.193000078+sin(nowhy/8)/7.5,-0.376998901)*ca(rad(27.1+sin(nowhy/8)*10),-rad(15.77),-rad(35.33)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(0.150001526,0.193000078+sin(nowhy/8)/7.5,-0.376998901)*ca(rad(27.1+sin(nowhy/8)*10),rad(15.77),rad(35.33)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),0,0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),0,0),animspeed)
- swait()
- until not attack
- end)
- for i, v in pairs(wingpieces) do
- spawn(function()
- v.Transparency = 1
- delay(0.6,function()
- v.Transparency = 0
- end)
- local wing = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Pastel blue-green"),
- Reflectance = 0.5,
- Size = v3(0.6, 0.6, 3.6),
- CFrame = v.CFrame
- })
- create("SpecialMesh",{
- Parent = wing,
- MeshType = Enum.MeshType.FileMesh,
- MeshId = "http://www.roblox.com/Asset/?id=9756362",
- Scale = v3(0.1, 0.6, 3)
- })
- tween(wing,{CFrame=wing.CFrame*cn(random(-2,2),random(-2,2),random(-2,2))*ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))},0.15,Enum.EasingDirection.Out)
- wait(0.15)
- tween(wing,{CFrame=cn(wing.Position,mouse.Hit.p)},0.2,Enum.EasingDirection.Out)
- wait(0.2)
- spawn(function()
- local count = 0
- local exist = true
- repeat
- count = count + 1
- local hit, pos = raycast(wing.Position,wing.CFrame.LookVector,10,chr)
- if hit then
- exist = false
- local _hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if _hum then
- local dmg = random(10,20)
- if hit.Name == "Head" then dmg = dmg*2 end
- damage(_hum,dmg)
- local soundpart = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Size = v3(0.1,0.1,0.1),
- Transparency = 1,
- Position = pos,
- })
- local particles = create("ParticleEmitter",{
- Parent = soundpart,
- Color = cseq{cseqk(0,c3(120,0,0)),cseqk(1,c3(120,0,0))},
- Size = nseq{nseqk(0,1.25),nseqk(1,3.69)},
- Texture = "rbxasset://textures/particles/smoke_main.dds",
- Transparency = nseq{nseqk(0,0),nseqk(1,1)},
- Acceleration = v3(0,-30,0),
- Drag = 7,
- Enabled = false,
- Lifetime = NumberRange.new(1,2),
- Rotation = NumberRange.new(0,360),
- RotSpeed = NumberRange.new(-180,180),
- Speed = NumberRange.new(15,25),
- SpreadAngle = Vector2.new(45,45)
- })
- particles:Emit(10)
- playsound(255661850,soundpart,1)
- debris(soundpart,2)
- end
- wing:Destroy()
- else
- wing.CFrame = wing.CFrame * cn(0,0,-10)
- end
- swait()
- until count > 50 or not exist
- end)
- end)
- wait(0.25)
- end
- hum.WalkSpeed = 45
- attack = false
- end
- function doicespikelineidk()
- if attack then return end
- attack = true
- hum.WalkSpeed = 8
- local gyro = create("BodyGyro",{
- Parent = hrp,
- MaxTorque = v3(0,400000,0),
- P = 32000,
- CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- })
- delay(0.1,function()
- local start = hrp.CFrame
- for i = 1, 28 do
- spawn(function()
- local startpoint = start * cn(0,-3,-3*i-3)
- local sizemultiplier = random(5,8)/6
- local part = create("CornerWedgePart",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- Size = v3(4,12,4)*sizemultiplier,
- CFrame = startpoint * ca(rad(random(-30,30)),0,rad(random(-30,30))) * ca(0,rad(random(0,360)),0) * cn(0,-6*sizemultiplier,0)
- })
- playsound(5752235534,part,0.5)
- debris(part,3)
- part.Touched:Connect(function()end)
- local ea = part.CFrame
- tween(part,{CFrame=part.CFrame*cn(0,11*sizemultiplier,0)},0.25,Enum.EasingDirection.In)
- delay(0.25,function()
- for e, v in pairs(part:GetTouchingParts()) do
- if v:FindFirstAncestor(plr.Name) == nil then
- local _hum = v.Parent:FindFirstChildOfClass("Humanoid")
- if _hum then
- damage(_hum,20)
- end
- end
- end
- end)
- wait(0.45)
- tween(part,{CFrame=ea},0.35,Enum.EasingDirection.In)
- wait(0.35)
- part:Destroy()
- end)
- wait(0.02)
- end
- end)
- for i = 1, 3, 0.3 do
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.137001038,0.184999943,-0.522003174)*ca(rad(45),0,rad(-30)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(0.102996826,-0.0399999619,0.32900238)*ca(0,rad(8.66),0)*ca(rad(-30.7),0,rad(3.12)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),rad(30),0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),rad(-30),0),animspeed)
- gyro.CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- swait()
- end
- for i = 1, 3, 0.6 do
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.250999451,0.224999905,0.601997375)*ca(0,rad(35.33),0)*ca(rad(-30.99),0,rad(-46.86)),animspeed*1.5)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(-0.016998291,0.792000055,-0.972999573)*ca(0,rad(147.65),0)*ca(rad(22.12),0,rad(157.94)),animspeed*1.5)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed*1.5)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed*1.5)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),rad(-30),0),animspeed*1.5)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),rad(30),0),animspeed*1.5)
- gyro.CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- swait()
- end
- gyro:Destroy()
- hum.WalkSpeed = 45
- attack = false
- end
- function icepew()
- if attack then return end
- attack = true
- delay(0.3,function()
- playsound(4580495407,torso,3)
- end)
- for i = 1, 5, 0.3 do
- local _start = rarm.CFrame * cn(0,-1,0)
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.150001526,0.193000078+sin(nowhy/8)/7.5,-0.376998901)*ca(rad(27.1+sin(nowhy/8)*10),-rad(15.77),-rad(35.33)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(-0.0159988403,0.401000023,-0.981002808)*ca(0,rad(88.96),0)*ca(rad(-16.7),0,rad(66.66)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),0,0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),0,0),animspeed)
- local poof = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Light blue"),
- Material = Enum.Material.Ice,
- Transparency = 0.25,
- Size = v3(2.5,2.5,2.5),
- CFrame = _start * ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))
- })
- tween(poof,{Size=v3(),Orientation=v3(random(0,360),random(0,360),random(0,360)),Transparency=1},0.5,Enum.EasingDirection.Out)
- debris(poof,1.5)
- local part2 = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Light blue"),
- Material = Enum.Material.Ice,
- Transparency = 0.5,
- Size = v3(1.5,1.5,1.5),
- CFrame = _start * cn(random(-3,3),random(-3,3),random(-3,3)) * ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))
- })
- tween(part2,{Size=v3(),Transparency=1,CFrame=_start*ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))},0.2,Enum.EasingDirection.In)
- debris(part2,0.2)
- swait()
- end
- local start = (rarm.CFrame * cn(0,-1,0)).p
- local hit, hitpos, surface = raycast(start,cn(start,mouse.Hit.p).LookVector,2048,chr)
- if hit then
- local length = (start-hitpos).Magnitude
- local beam = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Size = v3(0.5,0.5,length),
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- Position = start,
- CFrame = cn(start,hitpos)
- })
- beam.CFrame = beam.CFrame * cn(0,0,-length/2)
- tween(beam,{Size=v3(0.5,0.5,0),CFrame=beam.CFrame*cn(0,0,-length/2)},0.15,Enum.EasingDirection.Out,Enum.EasingStyle.Linear)
- debris(beam,0.15)
- local part = create("Part",{
- Parent = fx,
- Anchored = true,
- Position = hitpos,
- CFrame = cn(hitpos, hitpos + surface) * ca(0,rad(90),0),
- Material = Enum.Material.Ice,
- BrickColor = BrickColor.new("Light blue"),
- Shape = Enum.PartType.Cylinder,
- Size = v3(0.1,0,0)
- })
- playsound(268249319,part,3)
- part.Touched:Connect(function(p)
- local _hum = p.Parent:FindFirstChildOfClass("Humanoid")
- if _hum then
- damage(_hum,15)
- end
- end)
- part.CustomPhysicalProperties = PhysicalProperties.new(0.919,0,0.15,100,1)
- tween(part,{Size=v3(0.1,25,25)},4,Enum.EasingDirection.Out)
- delay(7,function()
- tween(part,{Size=v3(0.1,22,22),Transparency=1},0.7,Enum.EasingDirection.In)
- debris(part,0.7)
- end)
- end
- attack = false
- end
- function iceshards2idk()
- if attack then return end
- attack = true
- local gyro = create("BodyGyro",{
- Parent = hrp,
- MaxTorque = v3(0,400000,0),
- P = 32000,
- CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- })
- spawn(function()
- repeat
- laweld.C0 = laweld.C0:Lerp(lac0*cn(0.0059967041,0.25,-0.990997314)*ca(0,rad(7.5),0)*ca(rad(90),0,0),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(-0.0059967041,0.25,-0.990997314)*ca(0,rad(7.5),0)*ca(rad(90),0,0),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),0,0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),0,0),animspeed)
- gyro.CFrame = cn(hrp.Position,v3(mouse.Hit.p.X,hrp.Position.Y,mouse.Hit.p.Z))
- local poof = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Light blue"),
- Material = Enum.Material.Ice,
- Transparency = 0.25,
- Size = v3(1.5,1.5,1.5),
- CFrame = torso.CFrame*cn(0,0,-4) * ca(rad(random(0,360)),rad(random(0,360)),rad(random(0,360)))
- })
- tween(poof,{Size=v3(),Orientation=v3(random(0,360),random(0,360),random(0,360)),Transparency=1},0.5,Enum.EasingDirection.Out)
- debris(poof,1.5)
- swait()
- until not attack
- gyro:Destroy()
- end)
- for i = 1, 3 do
- local start = (torso.CFrame*cn(0,0,-5)).p
- local wing = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- BrickColor = BrickColor.new("Pastel blue-green"),
- Reflectance = 0.5,
- Size = v3(0.6, 0.6, 3.6),
- Position = start,
- CFrame = cn(start,mouse.Hit.p)
- })
- create("SpecialMesh",{
- Parent = wing,
- MeshType = Enum.MeshType.FileMesh,
- MeshId = "http://www.roblox.com/Asset/?id=9756362",
- Scale = v3(0.1, 0.6, 3)
- })
- spawn(function()
- local count = 0
- local exist = true
- repeat
- count = count + 1
- local hit, pos = raycast(wing.Position,wing.CFrame.LookVector,10,chr)
- if hit then
- exist = false
- local _hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if _hum then
- local dmg = random(10,20)
- if hit.Name == "Head" then dmg = dmg*2 end
- damage(_hum,dmg)
- local soundpart = create("Part",{
- Parent = fx,
- Anchored = true,
- CanCollide = false,
- Size = v3(0.1,0.1,0.1),
- Transparency = 1,
- Position = pos,
- })
- local particles = create("ParticleEmitter",{
- Parent = soundpart,
- Color = cseq{cseqk(0,c3(120,0,0)),cseqk(1,c3(120,0,0))},
- Size = nseq{nseqk(0,1.25),nseqk(1,3.69)},
- Texture = "rbxasset://textures/particles/smoke_main.dds",
- Transparency = nseq{nseqk(0,0),nseqk(1,1)},
- Acceleration = v3(0,-30,0),
- Drag = 7,
- Enabled = false,
- Lifetime = NumberRange.new(1,2),
- Rotation = NumberRange.new(0,360),
- RotSpeed = NumberRange.new(-180,180),
- Speed = NumberRange.new(15,25),
- SpreadAngle = Vector2.new(45,45)
- })
- particles:Emit(10)
- playsound(255661850,soundpart,1)
- debris(soundpart,2)
- end
- wing:Destroy()
- else
- wing.CFrame = wing.CFrame * cn(0,0,-10)
- end
- swait()
- until count > 50 or not exist
- end)
- wait(0.25)
- end
- attack = false
- end
- local musicchoices = {"rbxassetid://2908188242","rbxassetid://2209318456"}
- local musicnum = 1
- function changemusic()
- musicnum = musicnum + 1
- if musicnum > #musicchoices then musicnum = 1 end
- musicchoice = musicchoices[musicnum]
- bgmstarttime = tick()
- bgm.Name = "cmon play something else"
- end
- mouse.KeyDown:Connect(function(key)
- if key == "z" then
- freezeballidk()
- elseif key == "x" then
- detachmywingsouchouchmywingsaregone()
- elseif key == "c" then
- doicespikelineidk()
- elseif key == "v" then
- icepew()
- elseif key == "b" then
- iceshards2idk()
- elseif key == "m" then
- changemusic()
- end
- end)
- -- movement animations
- local wingweld1 = create("Weld",{
- Parent = chrmod.t,
- Part0 = chrmod.t,
- Part1 = wings.set1.core,
- C0 = cn(0,0,0.688)
- })
- local wingweld2 = create("Weld",{
- Parent = chrmod.t,
- Part0 = chrmod.t,
- Part1 = wings.set2.core,
- C0 = cn(0,0,0.688)
- })
- while true do
- swait()
- nowhy = nowhy + 1
- local hitfloor = raycast(hrp.Position,cn(hrp.Position,hrp.Position+v3(0,-1,0)).LookVector,4,chr)
- local velo = hrp.Velocity
- local x,y,z = abs(velo.X),velo.Y,abs(velo.Z)
- local b = cn(hrp.CFrame:VectorToObjectSpace(velo/1.6))
- local tilt = {X=clamp(b.X,-28.128,28.128),Z=clamp(b.Z,-28.128,28.128)}
- if not attack then
- if hitfloor then
- if x > 1 or z > 1 then
- laweld.C0 = laweld.C0:lerp(lac0*cn(-tilt.X/66,0,-tilt.Z/33)*ca(rad(tilt.Z*2),0,-rad(tilt.X)),animspeed)
- raweld.C0 = raweld.C0:lerp(rac0*cn(-tilt.X/66,0,-tilt.Z/33)*ca(rad(tilt.Z*2),0,-rad(tilt.X)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(-tilt.X/90,0.64199996,-0.580001831-tilt.Z/132)*ca(rad(tilt.Z*0.75),0,-rad(tilt.X/2)),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(-tilt.X/90,0.25,-tilt.Z/132)*ca(rad(tilt.Z*0.75),0,-rad(tilt.X/2)),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,0)*ca(rad(tilt.Z*1.5),0,-rad(tilt.X/1.5)),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-abs(-tilt.Z/150),-tilt.Z/80)*ca(-rad(tilt.Z*1.5),-rad(tilt.X*1.5),0),animspeed)
- else
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.150001526,0.193000078+sin(nowhy/8)/7.5,-0.376998901)*ca(rad(27.1+sin(nowhy/8)*10),-rad(15.77),-rad(35.33)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(0.150001526,0.193000078+sin(nowhy/8)/7.5,-0.376998901)*ca(rad(27.1+sin(nowhy/8)*10),rad(15.77),rad(35.33)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.64199996,-0.580001831-sin(nowhy/8)/5)*ca(rad(-12+sin(nowhy/8)*16),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0,0,-sin(nowhy/8)/5)*ca(rad(sin(nowhy/8)*16),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0*cn(0,-0.0149998665,-0.124000549)*ca(rad(-14),0,0),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3+cos(nowhy/8)/1.2,-cos(nowhy/8)/4)*ca(rad(sin(nowhy/8)*7.5),0,0),animspeed)
- end
- else
- if y > 1 then
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.341999054,-0.0920000076,0)*ca(0,0,rad(-30)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(0.341999054,-0.0920000076,0)*ca(0,0,rad(30)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(0,0.368999958,-0.314998627)*ca(rad(-15),0,0),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0,animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3,0)*ca(rad(10),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0,animspeed)
- elseif y < -1 then
- laweld.C0 = laweld.C0:Lerp(lac0*cn(-0.404000092,0.59800005,0)*ca(0,0,rad(-100)),animspeed)
- raweld.C0 = raweld.C0:Lerp(rac0*cn(0.404000092,0.59800005,0)*ca(0,0,rad(100)),animspeed)
- llweld.C0 = llweld.C0:Lerp(llc0*cn(-0.15,0.368999958,-0.314998627)*ca(rad(-15),0,rad(-8)),animspeed)
- rlweld.C0 = rlweld.C0:Lerp(rlc0*cn(0.15,0,0)*ca(0,0,rad(8)),animspeed)
- torsoweld.C0 = torsoweld.C0:Lerp(cn(0,3,0)*ca(rad(-25),0,0),animspeed)
- headweld.C0 = headweld.C0:Lerp(hc0,animspeed)
- end
- end
- end
- wingweld1.C0 = wingweld1.C0:Lerp(cn(0,0,0.688)*ca(0,rad(-25+sin(nowhy/8)*16),0),animspeed)
- wingweld2.C0 = wingweld2.C0:Lerp(cn(0,0,0.688)*ca(0,rad(25-sin(nowhy/8)*16),0),animspeed)
- hum.Name = randomstring()
- hum.PlatformStand = false
- if chr:FindFirstChildOfClass("ForceField") == nil then
- create("ForceField",{
- Parent = chr,
- Visible = false,
- Name = randomstring()
- })
- end
- hum.MaxHealth = 9999
- hum.Health = 9999
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement