Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module Script:
- local module = {}
- local.replicatedStorage = game:GetService("ReplicatedStorage")
- function module.lift ()
- replicatedStorage:Remotes:Lift:Fireserver
- end
- return module
- Local Script:
- local module = require (script.parent:WaitForChild("ModuleScript"))
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- script.Parent.Activated:Connect(function()
- module.lift()
- end)
- Remotes:
- local replicatedStorage - game:GetService("ReplicatedStorage")
- local remoteData - game:GetService("ScriptService"):WaitForChild("RemoteData")
- local cooldown - 0.04
- replicatedStorage.Remotes.Lift.OnServerEvent:Connect (function(player)
- end)
- Script:
- local.serverStorage = game.GetService("ServerStorage")
- game:Player.PlayerAdded:Connect(function(Player)
- local dataFolder - Instance.new("Folder")
- dataFolder.Name - player.Name
- dataFolder.Parent = ServerStorage.RemoteData
- local debounce = Instance.net("BoolValue")
- debounce.Name = ("Debounce")
- debounce.Parent = DataFolder
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement