NikHacks

Spawn A part script

Nov 24th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local hit = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,0,-3)
  2.  
  3.     a = Instance.new("Part", workspace)
  4.     a.Anchored = true
  5.     a.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,0,-3)
  6.     a.CanCollide = true
  7.    
  8.         for i, v in pairs(game:GetService("Workspace").Givers:GetChildren()) do
  9.     if v.Name == "Station" then
  10.     for a, b in pairs(v:GetChildren()) do
  11.     if b:IsA("StringValue") then
  12.     if b.Value == "Pistol" then
  13.     v.CFrame = CFrame.new(hit)
  14.     end
  15.     end
  16.     end
  17.     end
  18.     end
Add Comment
Please, Sign In to add comment