1_F0

Demonfall TP To Sun Ore Script

Jul 11th, 2021 (edited)
2,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local function yes()
  2. for i,v in pairs(game.workspace.Map.Minerals:GetChildren()) do
  3. for ii,vv in pairs(v:GetChildren()) do
  4. for iii,vvv in pairs(vv:GetChildren()) do
  5. if vvv.Name == "MineralName" then
  6. if vvv.Value == "Sun Ore" then --- change "Sun Ore" to other ore names if you want
  7. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = vvv.Parent.CFrame
  8. end
  9. end
  10. end
  11. end
  12. end
  13. end
  14.  
  15.  
  16.  
  17. game.Players.LocalPlayer.Chatted:Connect(function(w)
  18. if w == "ah" then ----- change "ah" to whatever you want to type
  19. yes()
  20. end
  21. end)
  22. local message = Instance.new("Message", workspace)
  23. message.Text = "Type "ah" in chat to teleport to the Sun Ore!"
  24. wait(4.5)
  25. message:Destroy()
Add Comment
Please, Sign In to add comment