Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1);
- local Player = game:GetService("Players").LocalPlayer;
- local Mouse = Player:GetMouse();
- local PlayerGui = Player.PlayerGui;
- local UI = Instance.new("ScreenGui",PlayerGui);
- local TextLabel = Instance.new("TextLabel",UI);
- TextLabel.BackgroundTransparency = 1;
- TextLabel.Text = "Press F to pull";
- TextLabel.Size = UDim2.new(.5,0,0.05,0);
- TextLabel.Position = UDim2.new(0.25,0,0.85,0);
- TextLabel.Font = "ArialBold";
- TextLabel.FontSize = "Size18";
- TextLabel.TextColor3=Color3.new(1,1,1);
- TextLabel.Visible = false;
- local Char = Player.Character;
- local Cam = Workspace.CurrentCamera;
- if game.ReplicatedStorage:FindFirstChild("Guillotine") == nil then
- Guillotine = game.ReplicatedStorage:WaitForChild("gp"):InvokeServer("model",317952382);
- Guillotine.Parent = game.ReplicatedStorage;
- end
- Guillotine = game.ReplicatedStorage:WaitForChild("Guillotine");
- local LocalPull = Guillotine:WaitForChild("Pull"):clone();
- LocalPull.Parent = Cam;
- LocalPull:SetPrimaryPartCFrame(Guillotine.Pull:GetPrimaryPartCFrame());
- local ClickDetector = LocalPull.PullRing;
- local RS = game:GetService("ReplicatedStorage");
- local sig;
- local targ;
- if not RS:FindFirstChild("Target") then
- targ = Instance.new("ObjectValue",RS);
- targ.Name = "Target";
- end
- if not RS:FindFirstChild("Signal") then
- sig = Instance.new("BoolValue",RS);
- sig.Name = "Signal";
- end
- sig=RS.Signal;
- targ=RS.Target;
- sig.Value=false;
- targ.Value=nil;
- Mouse.KeyDown:connect(function(k)
- if k == "f" and canpull and targ.Value then
- sig.Value = true;
- end
- end)
- Player.Chatted:connect(function(m)
- local s = m:lower();
- local found;
- if m == "reset" then
- targ.Value = nil;
- sig.Value = false;
- for _,v in pairs(game.Players:GetPlayers()) do
- RS:WaitForChild("req"):FireServer(317989332,v.Character);
- end
- end
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1,3)==s:sub(1,3) and not targ.Value then
- local ch = Workspace:WaitForChild(v.Name);
- if ch:FindFirstChild("Torso") and ch:FindFirstChild("HumanoidRootPart") and ch:FindFirstChild("Head") and ch:FindFirstChild("Left Leg")
- and ch:FindFirstChild("Right Leg") and ch:FindFirstChild("Left Arm") and ch:FindFirstChild("Right Arm")
- then
- targ.Value=ch
- found=ch;
- end
- end
- end
- if found then
- for _,v in pairs(game.Players:GetPlayers()) do
- RS:WaitForChild("req"):FireServer(317973613,v.Character);
- end
- end
- end)
- while true do
- wait(.1);
- canpull = (Char:GetModelCFrame().p-ClickDetector.Position).magnitude < 5;
- TextLabel.Visible = canpull;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement