WebThus, if you have code you want to run multiple times, you should encapsulate it in a function that the ModuleScript returns. Here's how the code would look like given your setup: Script1: local script2 = require (game.ServerScriptService.Script2) game.Players.PlayerAdded:Connect (function (player) script2 () end) Script2: WebJul 28, 2024 · 43K views 4 years ago Roblox Scripting Tutorials This Roblox Bindable Events tutorial will show you how to use Bindable Events in your own game so that you can make two scripts …
Understanding Roblox Architecture – How Roblox games work
WebMar 19, 2024 · Bindable functions are used for script to script communication (same type). For example, if you need one server script to connect with another server script, instead … WebApr 8, 2024 · 7.7K views 1 year ago Roblox Scripting - From Zero to Hero. This video covers how you can start using bindable events and bindable functions! This also helps beginner scripters learn how to script ... how many breeds of panda are there
How to call function from another script : r/roblox - Reddit
WebJun 28, 2009 · You can use Bindableevents and RemoteEvents to trigger functions and send as much data as you need back and forth between scripts. Use BindableEvents for server/server communication and RemoteEvents for server/client-client/server communications. http://wiki.roblox.com/index.php?title=API:Class/BindableEvent Share … WebJun 2, 2024 · Faliure of Unequipping Trigger in Roblox. function Part1 () wait (0) script.Parent.Parent.Humanoid.WalkSpeed = 32 end function Part2 () wait (0) script.Parent.Parent.Humanoid.Walkspeed = 16 end script.Parent.Equipped:Connect (Part1) script.Parent.Unequipped:Connect (Part2) I want to properly trigger the function Part2, … WebAug 16, 2024 · You’re right that remotes allow you to send messages from the game client to the game server. Remotes work similar to bindable events in you can fire functions and events, but BindableEvents and BindableFunctions allow you to run functions and fire events between local scripts, or between server scripts. high protein for diabetics