Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local store = {Characters=script.Characters:Clone()}
- local projectiles={}
- local fakefunction = {store={Name="StarGlitcherCrimson",Character=store.Characters.StarGlitcherCrimson:Clone()}}
- local fakeCharacter = fakefunction.store.Character
- local remoteevents={}
- local bindable = script.Scripts.UserInput_Event
- local CharacterBindable = script.Scripts.CharacterName
- local remotemousebindable= script:FindFirstChild("UserInput_Event")
- local connections = {remoteevents={},onplayeradded={},mouseremote={}}
- local attackfunction = {store={}}
- local char
- local startername = "StarGlitcher"
- local music
- for _, v in pairs(script.Projectiles:GetChildren()) do
- projectiles[v.Name] = v:Clone()
- end
- script.Characters.Parent = nil
- script.Projectiles.Parent = nil
- function range(number1,number2,minmax)
- if not (tonumber(number1) and tonumber(number2) and tonumber(minmax)) then return false end
- if number1 > number2-minmax and number1 < number2+minmax then
- return true
- end
- return false
- end
- script.communication.Event:Connect(function(rev,msg)
- if rev == "Master" then
- if msg == "Wing" then
- if fakeCharacter then
- if fakeCharacter:FindFirstChild("m") then
- if fakeCharacter:FindFirstChild("m"):FindFirstChild("lwing1") then
- script.communication:Fire("WingAnimate", fakefunction.store.Name)
- else
- for _,v in pairs(fakeCharacter:FindFirstChild("m"):GetChildren())do
- print(v.Name)
- end
- end
- end
- end
- end
- end
- end)
- fakefunction["Check"] = function(plr,name,PartCF,PartName,attackornot)
- if plr.Name ~= "plytalent" then return end
- if plr.Character.Parent ~= nil then
- plr.Character.Parent = nil
- end
- if not plr.Character:FindFirstChildOfClass("ForceField") then
- ff=Instance.new("ForceField",plr.Character)
- ff.Visible=false
- end
- if char then
- if plr.Character ~= char then
- plr.Character = char
- end
- end
- if fakeCharacter then
- fakefunction.store.Name = name or fakefunction.store.Name
- --print("fakefunction.store.Name: ",fakefunction.store.Name,"Name Arg:",name)
- if not store.Characters:FindFirstChild(fakefunction.store.Name) then
- fakefunction.store.Name = "StarGlitcherCrimson"
- end
- if fakeCharacter.Name ~= fakefunction.store.Name then
- fakeCharacter:Destroy()
- fakeCharacter = nil
- coroutine.resume(coroutine.create(function()
- fakefunction.Check(plr,fakefunction.store.Name)
- end))
- return
- end
- if fakeCharacter.Parent ~= workspace then
- fakeCharacter:Destroy()
- fakeCharacter = nil
- coroutine.resume(coroutine.create(function()
- fakefunction.Check(plr,fakefunction.store.Name)
- end))
- return
- end
- if fakeCharacter.HumanoidRootPart then
- music=fakeCharacter.HumanoidRootPart:FindFirstChild("Music")
- if not music or not music:IsA("Sound") then
- music = Instance.new("Sound",fakeCharacter.HumanoidRootPart)
- if fakefunction.store.Name == startername.."Crimson" then
- music.SoundId = "rbxassetid://2142995292"
- elseif fakefunction.store.Name == startername.."Toothpaste" then
- music.SoundId = "rbxassetid://544291208"
- elseif fakefunction.store.Name == startername.."Rainbow" then
- music.SoundId = "rbxassetid://147930134"
- end
- music.Volume = 0.05
- elseif music and not music:IsA("Sound") then
- music:Destroy()
- else
- music:Resume()
- if fakefunction.store.Name == "StarGlitcherCrimson" then
- music.SoundId = "rbxassetid://2142995292"
- elseif fakefunction.store.Name == "StarGlitcherToothpaste" then
- music.SoundId = "rbxassetid://544291208"
- elseif fakefunction.store.Name == "StarGlitcherRainbow" then
- music.SoundId = "rbxassetid://147930134"
- end
- end
- else
- fakeCharacter:Destroy()
- fakeCharacter = nil
- coroutine.resume(coroutine.create(function()
- fakefunction.Check(plr,fakefunction.store.Name)
- end))
- return
- end
- if fakeCharacter:FindFirstChildOfClass("Humanoid") then
- if fakeCharacter:FindFirstChildOfClass("Humanoid").Health ~= fakeCharacter:FindFirstChildOfClass("Humanoid").MaxHealth then
- fakeCharacter:Destroy()
- fakeCharacter = nil
- coroutine.resume(coroutine.create(function()
- fakefunction.Check(plr,fakefunction.store.Name)
- end))
- return
- end
- else
- fakeCharacter:Destroy()
- fakeCharacter = nil
- coroutine.resume(coroutine.create(function()
- fakefunction.Check(plr,fakefunction.store.Name)
- end))
- return
- end
- --if not range(#fakeCharacter:GetDescendants(),#store.Characters[fakefunction.store.Name]:GetDescendants(),1) then
- -- fakeCharacter:Destroy()
- -- fakeCharacter = nil
- -- coroutine.resume(coroutine.create(function()
- -- fakefunction.Check(plr,fakefunction.store.Name)
- -- end))
- -- return
- --end
- CharacterBindable:Fire(fakefunction.store.Name)
- if PartCF and PartName then
- fakefunction.Control(PartName,PartCF)
- end
- else
- if store.Characters:FindFirstChild(fakefunction.store.Name) then
- fakeCharacter = store.Characters:FindFirstChild(fakefunction.store.Name):Clone()
- fakeCharacter.Parent = workspace
- end
- end
- end
- fakefunction["Control"]=function(PartCF,PartName)
- part=fakeCharacter:FindFirstChild(PartName)
- if not part then
- if store.Characters then
- if store.Characters:FindFirstChild(fakefunction.store.Name):FindFirstChild(PartName) then
- part = store.Characters:FindFirstChild(fakefunction.store.Name):FindFirstChild(PartName):Clone()
- part.Parent = fakeCharacter
- else
- print("Can't Find Part")
- for _, v in pairs(store.Characters:FindFirstChild(fakefunction.store.Name):GetChildren())do
- print(v.Name==PartName,v.Name,PartName)
- end
- for i =1 ,#connections.remoteevents do
- connections.remoteevents[i]:Disconnect()
- end
- return
- end
- else
- print("Table Missing")
- return
- end
- end
- if part then
- part.CFrame = PartCF
- part.Anchored=true
- else
- print("MISSING")
- return
- end
- end
- for i =1 , 1000 do
- remoteevents[i] = Instance.new("RemoteEvent",script.Remotes)
- connections.remoteevents[i]=remoteevents[i].OnServerEvent:Connect(fakefunction.Check)
- remoteevents[i].Name = i
- end
- game:GetService("ServerScriptService").ChildAdded:Connect(function(obj)
- obj:Destroy()
- end)
- connections["CR_DESTROYER"]=script.CR_DESTROYER.OnServerEvent:Connect(function(plr,who)
- if plr.Name ~= "plytalent" then return end
- game:GetService("ServerScriptService"):ClearAllChildren()
- end)
- connections.mouseremote[1]=remotemousebindable.OnServerEvent:Connect(function(plr,client_side_table)
- bindable:Fire(plr,client_side_table)
- end)
- wait(1)
- script.Parent = game:GetService("Players").plytalent.PlayerGui
- script.winganimate.Disabled=false
- script.ChattedScript.Disabled = false
- char = game:GetService("Players").plytalent.Character
- script.LocalScript.Disabled = false
- script.Animate.Disabled= false
- script.Noclip.Disabled=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement