Advertisement
VenoxComeback

jd

Mar 18th, 2025 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. -- // Find JD model inside the folder structure
  2. local buildingsFolder = workspace:WaitForChild("Buildings")
  3. local shopsFolder = buildingsFolder:WaitForChild("Shops")
  4. local jdModel = shopsFolder:WaitForChild("JD")
  5.  
  6. -- // Look for the ClothingStand model inside JD
  7. local clothingStand = jdModel:FindFirstChild("ClothingStand")
  8.  
  9. -- // Make sure ClothingStand is found
  10. if clothingStand then
  11. -- // Get the position of the ClothingStand (you can also adjust the position as needed)
  12. local clothingStandPosition = clothingStand.PrimaryPart.Position
  13.  
  14. -- // Calculate a new position next to the ClothingStand (adjust as needed)
  15. local targetPosition = clothingStandPosition + Vector3.new(5, 0, 0) -- Offset to the right
  16.  
  17. -- // Create a new part at the target position with a unique name
  18. local teleportPart = Instance.new("Part")
  19. teleportPart.Name = "JDTELEPORTPARTZERO" -- Unique name
  20. teleportPart.Size = Vector3.new(2, 1, 2) -- Set the size of the part
  21. teleportPart.Position = targetPosition -- Position it next to the ClothingStand
  22. teleportPart.Anchored = true -- Anchor the part to keep it in place
  23. teleportPart.CanCollide = false -- Disable collisions for the part
  24. teleportPart.Parent = workspace -- Parent it to the workspace
  25.  
  26. -- // Optionally, give the part a transparent appearance (to avoid obstruction)
  27. teleportPart.Transparency = 0.5 -- Adjust transparency as needed
  28.  
  29. -- // Get the player's character
  30. local player = game.Players.LocalPlayer
  31. local character = player.Character
  32. if character then
  33. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  34.  
  35. -- // Tween the character to the new part's position
  36. local tweenService = game:GetService("TweenService")
  37. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  38.  
  39. -- // Set goal for tween (position of the teleport part)
  40. local goal = {Position = teleportPart.Position}
  41. local tween = tweenService:Create(humanoidRootPart, tweenInfo, goal)
  42.  
  43. -- // Play the tween
  44. tween:Play()
  45.  
  46. -- // Optional: Clean up the teleport part after some time (e.g., 5 seconds)
  47. game:GetService("Debris"):AddItem(teleportPart, 5)
  48. end
  49. else
  50. warn("ClothingStand model not found in JD!")
  51. end
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement