Advertisement
tyridge77

Untitled

Aug 25th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --CLIENT
  2. Spells = Workspace:WaitForChild("RunSpellEffect");
  3.  
  4. Spells.OnClientEvent:connect(function(cframe,spellname)
  5.     -- render local effect based on settings, etc
  6.     -- play sound effects in client, etc
  7. end)
  8.  
  9. function CollisionAt(cframe,spelltype)
  10.    Spells:FireServer(cfrmae,spelltype);
  11. end
  12.  
  13. CollisionAt(CFrame.new(5,5,5),"Fireballidk")
  14.  
  15. -- Now it'd send that message to the server, and it'd call fireallclients, firing the function from above to render the
  16. -- desired effects.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement