Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- local char = script.Parent
- local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- local eqAcer = plr:WaitForChild("EquippedAcer")
- --Acer Follow Functions
- local function AcerFollows(Acer, AN) -- AN = AcerName. Acer = Acer Object
- local clone = Acer:Clone()
- clone.Parent = char
- clone.Name = "Acer"
- local hum = clone:WaitForChild("HumanoidRootPart")
- local atch1 = Instance.new("Attachment", hum)
- atch1.Name = "Attachment1"
- hum:WaitForChild("AlignPosition").Attachment1 = atch1
- hum:WaitForChild("AlignOrientation").Attachment1 = atch1
- while eqAcer.Value == AN do
- atch1.WorldPosition = char.HumanoidRootPart.Position - Vector3.new(3,2.5,0)
- atch1.WorldOrientation = char.HumanoidRootPart.Orientation
- wait()
- end
- end
- if eqAcer.Value == "Aquarius" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Aquarius")
- local AN ="Aquarius"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Rem" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Rem")
- local AN = "Rem"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Pokei" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Pokei")
- local AN = "Pokei"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Thumpster" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Thumpster")
- local AN = "Thumpster"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Drillbo" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Drillbo")
- local AN = "Drillbo"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Stario" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Stario")
- local AN = "Stario"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Norath" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Norath")
- local AN = "Norath"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "ChillyPizza" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("ChillyPizza")
- local AN = "ChillyPizza"
- AcerFollows(Acer, AN)
- end
- eqAcer:GetPropertyChangedSignal("Value"):Connect(function()
- char:WaitForChild("Acer"):Destroy()
- if eqAcer.Value == "Aquarius" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Aquarius")
- local AN ="Aquarius"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Rem" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Rem")
- local AN = "Rem"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Pokei" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Pokei")
- local AN = "Pokei"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Thumpster" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Thumpster")
- local AN = "Thumpster"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Drillbo" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Drillbo")
- local AN = "Drillbo"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Stario" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Stario")
- local AN = "Stario"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "Norath" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("Norath")
- local AN = "Norath"
- AcerFollows(Acer, AN)
- elseif eqAcer.Value == "ChillyPizza" then
- local Acer = game:GetService("ReplicatedStorage"):WaitForChild("Acers"):WaitForChild("ChillyPizza")
- local AN = "ChillyPizza"
- AcerFollows(Acer, AN)
- end
- end)
- char:WaitForChild("Humanoid").Died:Connect(function()
- char.Acer:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement