Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Ever since i added this script every other script basically stopped working? [closed]

Asked by 6 years ago
wait()

repeat wait() until game.Players.LocalPlayer.Character ~= nil
local ContentProvider = Game:GetService("ContentProvider")

local function WaitForAssetsToLoad()
    while (ContentProvider.RequestQueueSize > 0) do
        wait()
    end
end
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
wait(2)
if not plr.Character:findFirstChild("Shirt") then
    local newshirt = Instance.new("Shirt")
    newshirt.Parent = plr.Character
    newshirt.Name = "Shirt"
end
wait(2)
if not plr.Character:findFirstChild("Pants") then
    local newshirt = Instance.new("Pants")
    newshirt.Parent = plr.Character
    newshirt.Name = "Pants"
end
local ownersshirt = plr.Character:findFirstChild("Shirt").ShirtTemplate
local ownerspants = plr.Character:findFirstChild("Pants").PantsTemplate
local shirt = plr.Character:WaitForChild("Shirt")
local pants = plr.Character:WaitForChild("Pants")
wait()
mouse.Button1Down:connect(function()
    if mouse.Target == nil then
    return end
    if mouse.Target.Name == "Coconut" then
            wait()
            mouse.Target.Anchored=false
    end
    if mouse.Target.Name == "Buy" then
        mouse.Target:findFirstChild("ID")
        game:GetService("MarketplaceService"):PromptPurchase(plr, mouse.Target:findFirstChild("ID").Value)
    end
end)
mouse.Move:connect(function()
    if mouse.Target == nil then
    return end
    if mouse.Target ~= nil then
    if mouse.Target.Name == "Buy" then
        mouse.Icon = 'http://www.roblox.com/asset/?id=181637101'
        end
        if mouse.Target.Name == "Buy" then
            if mouse.Target:findFirstChild("IsA").Value == "Shirt" then
            shirt.ShirtTemplate = (mouse.Target.Parent:findFirstChild("Shirt").ShirtTemplate)
            end
            if mouse.Target:findFirstChild("IsA").Value == "Pants" then
                pants.PantsTemplate = (mouse.Target.Parent:findFirstChild("Pants").PantsTemplate)
            end
        end
        if mouse.Target.Name ~= "Buy" then
            mouse.Icon = ''
            pants.PantsTemplate = ownerspants
            shirt.ShirtTemplate = ownersshirt
        end
    end
end)
0
What are you asking us to do? Krolaer 6 — 6y

Closed as Non-Descriptive by minikitkat

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?