Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print([[
- ___________________________________
- Kyutatsuki13's アマツミカ·スタライト script
- Build 0003
- Amatsumika Starlight the Kami of Stars
- ___________________________________
- ]])
- function checkfriendlist(model)
- local friend = false
- local target = nil
- if model.ClassName == "Player" then
- target = model
- else
- target = game:GetService("Players"):GetPlayerFromCharacter(model)
- end
- if target ~= nil then
- if target:IsFriendsWith(40229938) then friend = true end
- end
- return friend
- end
- if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Whitelist") then
- warn("You're not whitelisted h0h but since i released it")
- --wait(1)
- --error("Script has been stopped.")
- end
- warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
- local p = game:GetService("Players").LocalPlayer
- local plr = game:GetService("Players").LocalPlayer
- local player = game:GetService("Players").LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char:WaitForChild("Left Arm")
- local rarm = char:WaitForChild("Right Arm")
- local lleg = char:WaitForChild("Left Leg")
- local rleg = char:WaitForChild("Right Leg")
- local hed = char:WaitForChild("Head")
- local torso = char:WaitForChild("Torso")
- local root = char:WaitForChild("HumanoidRootPart")
- local hum = char:FindFirstChildOfClass("Humanoid")
- local debris = game:GetService("Debris")
- local run = game:GetService("RunService")
- local rs = run.RenderStepped
- local cam = workspace.CurrentCamera
- local movement = 4
- local change = 0.4
- local DebrisModel = Instance.new("Model",char)
- local stealth = false
- local debounce = false
- hum.MaxHealth = 50000
- hum.Health = hum.MaxHealth
- themeid = 556122490
- themepitch = 1
- main = {r = 0;g = 100;b = 255;v = 1}
- if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
- if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
- if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
- if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
- if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
- if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
- pr = p:FindFirstChild("rcolor")
- pg = p:FindFirstChild("gcolor")
- pb = p:FindFirstChild("bcolor")
- pv = p:FindFirstChild("vcolor")
- idth = p:FindFirstChild("idtheme")
- pith = p:FindFirstChild("pitchtheme")
- main_color = Color3.fromRGB(main.r,main.g,main.b)
- explosionid = {262562442,144699494,539294959,1388740053}
- --919941001
- Prefix = "/"
- p.Chatted:connect(function(msg)
- if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
- local v = tonumber(msg:sub(#Prefix+#'color r '+1))
- main.r = v
- elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
- local v = tonumber(msg:sub(#Prefix+#'color g '+1))
- main.g = v
- elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
- local v = tonumber(msg:sub(#Prefix+#'color b '+1))
- main.b = v
- elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
- local v = tonumber(msg:sub(#Prefix+#'color v '+1))
- if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
- elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
- local v = tonumber(msg:sub(#Prefix+#'theme '+1))
- themeid = v
- music(themeid,themepitch)
- elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
- local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
- themepitch = v
- music(themeid,themepitch)
- elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
- local v = msg:sub(#Prefix+#'prefix '+1)
- Prefix = v
- elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
- main.r = 0
- main.g = 100
- main.b = 255
- main.v = 1
- themeid = 556122490
- themepitch = 1
- music(themeid,themepitch)
- end
- end)
- ----------------------------------------------------------------------------
- no_anim = false
- attack = false
- attacking = false
- canjump = true
- aiming_anim = false
- animid = math.random(0,1)
- timer = 0
- bg = Instance.new("BodyGyro",root)
- bg.P = 100000
- bg.D = 100
- ----------------------------------------------------------------------------
- function rswait(value)
- if value ~= nil and value ~= 0 then
- for i=1,value do
- rs:wait()
- end
- else
- rs:wait()
- end
- end
- ----------------------------------------------------------------------------
- max = 0
- function music(id,pitch)
- max = 0
- if id == "Stop" then
- if not torso:FindFirstChild("MusicRuin") then
- soundz = Instance.new("Sound",torso)
- end
- soundz:Stop()
- else
- if not torso:FindFirstChild("MusicRuin") then
- soundz = Instance.new("Sound",torso)
- end
- soundz.MaxDistance = 150*5
- soundz.EmitterSize = 150/5
- soundz.Volume = 10
- soundz.Name = "MusicRuin"
- soundz.Looped = true
- soundz.PlaybackSpeed = pitch
- soundz.SoundId = "rbxassetid://"..id
- soundz:Stop()
- soundz:Play()
- end
- end
- ----------------------------------------------------------------------------
- function lerp(a, b, t)
- return a + (b - a)*t
- end
- ----------------------------------------------------------------------------
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function slerp(a, b, t)
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- ----------------------------------------------------------------------------
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = lerp(v,com2[i],al)
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------------------------------
- function findAllNearestTorso(pos,dist)
- local list = game.Workspace:children()
- local torso = {}
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= char) then
- local nayem = "Torso"
- if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
- temp = temp2:findFirstChild(nayem)
- human = temp2:findFirstChildOfClass("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- table.insert(torso,temp)
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- ----------------------------------------------------------------------------
- local isAPlayer
- function checkIfNotPlayer(model)
- coroutine.resume(coroutine.create(function()
- if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
- isAPlayer = true
- else
- isAPlayer = false
- end
- end))
- return isAPlayer
- end
- ----------------------------------------------------------------------------
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- ----------------------------------------------------------------------------
- function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- return wld
- end
- ----------------------------------------------------------------------------
- function weld(model)
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(model)
- for _,v in pairs(parts) do
- v.Anchored = false
- v.Locked = true
- end
- end
- ----------------------------------------------------------------------------
- function sound(id,position,vol,pitch,dist,start,finish)
- coroutine.resume(coroutine.create(function()
- local part = Instance.new("Part",DebrisModel)
- part.Anchored = true
- part.Position = position
- part.Size = Vector3.new(0,0,0)
- part.CanCollide = false
- part.Transparency = 1
- soundasd = Instance.new("Sound",part)
- soundasd.SoundId = "rbxassetid://"..id
- if vol ~= nil then
- soundasd.Volume = vol
- end
- if pitch ~= nil then
- soundasd.PlaybackSpeed = pitch
- end
- if dist ~= nil then
- soundasd.MaxDistance = dist*5
- soundasd.EmitterSize = dist/5
- end
- delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
- soundasd:Play()
- end))
- return soundasd
- end
- function createsound(id,parent)
- local soundz = Instance.new("Sound",parent)
- soundz.SoundId = "rbxassetid://"..id
- return soundz
- end
- function playsound(sond,vol,pitch,start)
- if vol ~= nil then
- sond.Volume = vol
- end
- if pitch ~= nil then
- sond.PlaybackSpeed = pitch
- end
- if start ~= nil then
- sond.TimePosition = start
- end
- sond:Play()
- end
- ----------------------------------------------------------------------------
- eColors={"Really red","Really black"}
- function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
- local magz = (Part0 - Part1).magnitude
- local curpos = Part0
- local trz = {-Offset,Offset}
- for i=1,Times do
- local li = Instance.new("Part", DebrisModel)
- li.TopSurface =0
- li.Material = Enum.Material.Neon
- li.BottomSurface = 0
- li.Anchored = true
- li.Locked = true
- li.Transparency = Trans or 0.4
- li.BrickColor = BrickColor.new(Color)
- li.formFactor = "Custom"
- li.CanCollide = false
- li.Size = Vector3.new(Thickness,Thickness,magz/Times)
- local lim = Instance.new("BlockMesh",li)
- local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
- if Times == i then
- local magz2 = (curpos - Part1).magnitude
- li.Size = Vector3.new(Thickness,Thickness,magz2)
- li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
- li.Name = "LIGHTNING"
- end
- end
- ----------------------------------------------------------------------------
- local HBill = Instance.new("BillboardGui",hed)
- local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
- local HName = Instance.new("TextLabel")
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.StudsOffset = Vector3.new(3.675,1.2,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(.5,0,.2,0)
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.BackgroundColor3 = Color3.new(255,255,255)
- HName.BorderColor3 = Color3.new(0,0,0)
- HName.BorderSizePixel = 2
- HName.Size = UDim2.new(1,0,.75,0)
- HName.Font = "Code"
- HName.Text = [[(Amatsumika Starlight)]]
- HName.TextScaled = true
- HName.TextColor3 = Color3.new(0.5,0.5,0.5)
- HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Bottom"
- local HBill = Instance.new("BillboardGui",hed)
- local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
- local HName = Instance.new("TextLabel")
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.StudsOffset = Vector3.new(3.675,2,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(.5,0,.5,0)
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.BackgroundColor3 = Color3.new(255,255,255)
- HName.BorderColor3 = Color3.new(0,0,0)
- HName.BorderSizePixel = 2
- HName.Size = UDim2.new(1,0,.75,0)
- HName.Font = "Code"
- HName.Text = [[「アマツミカ·スタライト」]]
- HName.TextScaled = true
- HName.TextColor3 = Color3.new(0,0,0)
- HName.TextStrokeColor3 = Color3.new(255,255,255)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Bottom"
- function bigboomrektxd()
- coroutine.resume(coroutine.create(function()
- local magnitude = nil
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- --sound(743499393,Position,10,math.random(6,8)/10)
- sound(440145223,Position,10,math.random(10,12)/10,50)
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshId = "rbxassetid://559831844"
- mesh2.Scale = Vector3.new(0,0,0.4)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromHSV(0,0,main.v)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(0,0,0)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
- Part1.Name = "EXPLOSION2"
- local Part0 = Instance.new("Part",DebrisModel)
- local PointLight2 = Instance.new("PointLight")
- Part0.Name = "Bullet"
- Part0.Material = Enum.Material.Neon
- Part0.Color = Color3.fromHSV(0,0,main.v)
- Part0.Anchored = false
- Part0.Size = Vector3.new(5, 5, 5)
- local mesh = Instance.new("SpecialMesh",Part0)
- mesh.MeshType = Enum.MeshType.Sphere
- local bforce = Instance.new("BodyForce",Part0)
- bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
- Part0.CanCollide = false
- PointLight2.Parent = Part0
- PointLight2.Color = Part0.Color
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local pos = Position + (direction * 2)
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- Part0.Velocity = direction * 60
- local asd = nil
- local loop = nil
- delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
- loop = rs:connect(function()
- local asdf = math.random(500,1000)/1000
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
- Part1.Parent = DebrisModel
- Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
- Part1.Name = "SMOKE"
- end)
- asd = Part0.Touched:connect(function(ht)
- local hit=ht.Parent
- if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
- asd:disconnect()
- loop:disconnect()
- Part0:Destroy()
- sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
- for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
- if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
- v:Destroy()
- else
- v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
- end
- local Position = Part0.Position
- local Target = v.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- local bv = Instance.new("BodyVelocity",v)
- bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
- debris:AddItem(bv,1)
- end
- for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
- for z=1,math.random(2,3) do
- local asdf = math.random(-5,5)*10-(i/20)*8
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(0,0,0)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- local a = i*0.5
- Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
- Part1.Name = "EXPLOSION"
- end
- end
- end
- end)
- end))
- end
- holdclick=false
- mouse.Button1Down:connect(function()
- if debounce == false then
- if animid == 0 then
- animid = 1
- else
- animid = 0
- end
- debounce = true
- holdclick = true
- aiming_anim = true
- wait(0.2)
- repeat
- rs:wait()
- timer = 150
- until holdclick == false
- bigboomrektxd()
- local Position = mouse.Hit.p
- local Target = root.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- root.Velocity = direction * 150
- aiming_anim = false
- delay(0.3,function() debounce = false end)
- end
- end)
- mouse.Button1Up:connect(function()
- holdclick=false
- end)
- function dashasdf()
- debounce = true
- canjump = false
- attack = true
- for i,v in pairs(char:GetChildren()) do
- if v ~= root then
- if v:IsA("Part") then
- v.Transparency = 1
- elseif v:IsA("Accoutrement") then
- v:FindFirstChildOfClass("Part").Transparency = 1
- end
- end
- end
- local tempattachment = Instance.new("Attachment",root)
- tempattachment.Position = Vector3.new(0,0,-4)
- for i=1,20 do rs:wait()
- root.Velocity = Vector3.new(0,0,0)
- root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
- local asdf = math.random(500,1000)/100
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshType = Enum.MeshType.Sphere
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(asdf,asdf,asdf)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
- Part1.Name = "SMOKE"
- end
- tempattachment:Destroy()
- for i,v in pairs(char:GetChildren()) do
- if v ~= root then
- if v:IsA("Part") then
- v.Transparency = 0
- elseif v:IsA("Accoutrement") then
- v:FindFirstChildOfClass("Part").Transparency = 0
- end
- end
- end
- canjump = true
- attack = false
- delay(0.1,function() debounce = false end)
- end
- function laz0r()
- local Position = nil
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- local Part1 = Instance.new("Part")
- local mesh2 = Instance.new("SpecialMesh",Part1)
- mesh2.MeshId = "rbxassetid://559831844"
- mesh2.Scale = Vector3.new(0,0,0.4)
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Color = Color3.fromHSV(0,0,main.v)
- Part1.Parent = DebrisModel
- Part1.Size = Vector3.new(0,0,0)
- Part1.Anchored = true
- Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
- Part1.Name = "EXPLOSION3"
- local Part0 = Instance.new("Part",DebrisModel)
- Part0.Name = "Bullet"
- Part0.Material = Enum.Material.Neon
- Part0.Color = Color3.fromHSV(0,0,main.v)
- Part0.Anchored = true
- local mesh = Instance.new("SpecialMesh",Part0)
- mesh.MeshType = Enum.MeshType.Sphere
- Part0.CanCollide = false
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local ray = Ray.new(Position, (Target-Position).unit*1048)
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- Part0.Size = Vector3.new(5,1,5)
- mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
- local pos = Position + (direction * (mesh.Scale.Y/2))
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- clashpart = Instance.new("Part",DebrisModel)
- clashpart.Size = Vector3.new(50,50,50)
- clashpart.CanCollide = false
- clashpart.Anchored = true
- clashpart.Transparency = 1
- clashpart.Color = main_color
- clashpart.Name = "StarLightClash"
- clashpart.CFrame = CFrame.new(endPoint, root.Position)
- sound(1177475476,Position,10,math.random(5,6)/10,300)
- local z = 10
- for i = 1,100 do rs:wait()
- if animid == 0 then
- Position = larm.Position
- else
- Position = rarm.Position
- end
- local Target = mouse.Hit.p
- local direction = Target - Position
- local direction = computeDirection(direction)
- local ray = Ray.new(Position, (Target-Position).unit*1048)
- local part, endPoint = workspace:FindPartOnRay(ray, char)
- Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
- mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
- mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
- local pos = Position + (direction * (mesh.Scale.Y/2))
- Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
- clashpart.CFrame = CFrame.new(endPoint, root.Position)
- local Position = mouse.Hit.p
- local Target = root.Position
- local direction = Target - Position
- local direction = computeDirection(direction)
- root.Velocity = direction * 5
- if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
- Part1 = Part0:Clone()
- Part1.Parent = DebrisModel
- Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
- Part1.Name = "SMOKE2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement