Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --CLIENT
- Spells = Workspace:WaitForChild("RunSpellEffect");
- Spells.OnClientEvent:connect(function(cframe,spellname)
- -- render local effect based on settings, etc
- -- play sound effects in client, etc
- end)
- function CollisionAt(cframe,spelltype)
- Spells:FireServer(cfrmae,spelltype);
- end
- CollisionAt(CFrame.new(5,5,5),"Fireballidk")
- -- Now it'd send that message to the server, and it'd call fireallclients, firing the function from above to render the
- -- desired effects.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement