Advertisement
OnFireRobloxScriptin

Open shop with touchpad regular script

Feb 19th, 2024
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --//Variables
  2. local touchpad = script.Parent
  3. local remoteEvent = game.ReplicatedStorage:WaitForChild("OpenShop")
  4.  
  5. --//Open
  6. touchpad.Touched:Connect(function(hit)
  7.     if hit.Parent:FindFirstChild("Humanoid") then
  8.         local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  9.         remoteEvent:FireClient(player)
  10.     end
  11. end)
  12.  
  13. --Full Video: https://youtu.be/YNAUAVvMa38
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement