Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character or player.CharacterAdded:Wait()
- local tool
- for i,v in player:GetDescendants() do
- if v.Name == "SyncAPI" then
- tool = v.Parent
- end
- end
- remote = tool.SyncAPI.ServerEndpoint
- function _(args)
- remote:InvokeServer(unpack(args))
- end
- function SetCollision(part,boolean)
- local args = {
- [1] = "SyncCollision",
- [2] = {
- [1] = {
- ["Part"] = part,
- ["CanCollide"] = boolean
- }
- }
- }
- _(args)
- end
- function AddFireToHands()
- local rightHand = char:WaitForChild("Right Arm")
- local leftHand = char:WaitForChild("Left Arm")
- local args2 = {
- [1] = "CreateDecorations",
- [2] = {
- [1] = {
- ["Part"] = rightHand,
- ["DecorationType"] = "Fire"
- }
- }
- }
- _(args2)
- end
- AddFireToHands()
Advertisement
Add Comment
Please, Sign In to add comment