Guest User

Untitled

a guest
Mar 16th, 2019
2,232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. _G.on = true --make it false if you want turn off
  2. if _G.on == false then
  3. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Status: OFF", Text = "Status OFF guys"})
  4. else
  5. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "STATUS: ON", Text = "Have a nice day"})
  6.  
  7. while _G.on do
  8. wait()
  9. local plr = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  10. local remotes = "Click"
  11. local fnc =
  12. {
  13. }
  14. local Event = game:GetService("ReplicatedStorage").Events.Npc
  15. Event:FireServer(remotes, fnc)
  16. for i, g in pairs(workspace["Areas"].Starter.NPCs:GetChildren()) do
  17.  if g.Name == "Villager" then
  18. g.HumanoidRootPart.Anchored = true
  19. plr.CFrame = g.HumanoidRootPart.CFrame
  20. end
  21. end
  22. end
  23. end
Add Comment
Please, Sign In to add comment