Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a=game:GetService("Players").LocalPlayer local b=a.Character or a.CharacterAdded:Wait()local c=false local d=Instance.new("ScreenGui")d.Parent=game.CoreGui local e=Instance.new("Frame")e.Size=UDim2.new(0,200,0,100)e.Position=UDim2.new(0.4,0,0.4,0)e.BackgroundColor3=Color3.new(0,0,0)e.Active=true e.Draggable=true e.Parent=d local f=Instance.new("TextButton")f.Size=UDim2.new(0,180,0,50)f.Position=UDim2.new(0,10,0,25)f.Text="ON"f.BackgroundColor3=Color3.new(0,1,0)f.Parent=e local function g()while c do for h,i in pairs(workspace:WaitForChild("RuntimeItems"):GetChildren())do if i:IsA("Model")then local j={[1]=i}game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("StoreItem"):FireServer(unpack(j))end end task.wait(0.5)end end f.MouseButton1Click:Connect(function()c=not c if c then f.Text="OFF"f.BackgroundColor3=Color3.new(1,0,0)g()else f.Text="ON"f.BackgroundColor3=Color3.new(0,1,0)end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement