Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I make for players to see forms?

Asked by 5 years ago

Hi!~ I'm making a dragon ball z game and I have a LocalScript that when you type "ssj" you turn into super saiyan you get yellow aura and yellow hair it also removes players accessories, but the problem is that when I test it with my friend we can't see each other forms when we type "ssj" only I can see myself in the form and only he can see himself in the form, how to make so server knows about the forms when we turn?

2 answers

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

My best guess is you're having problems implementing things with Filtering Enabled. Simply put, changing something from the client will not be replicated for the server, and therefore all other clients, if Filtering Enabled is on.

Here is a link to a post another user made that explains how it works.

1
You can't turn off FE anymore SirDerpyHerp 262 — 5y
0
Yes you can stef0206 125 — 5y
0
I'm pretty sure you can't unless your game was made before it was forced on, and if your game had it disabled still. XX_Scripta 11 — 5y
0
I know about that bloberous the thing I think I need to use RemoteFunction and RemoteEvent to be able for server and client sharing stuff each other for example I have a ki blast in the game the ki blast is like a tool you can select it by pressing 1 and then shot its great but its made like this VladyLuvAnime 2 — 5y
0
I've removed the part saying you can turn off Filtering Enabled. bloberous 66 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

I know about that bloberous the thing I think I need to use RemoteFunction and RemoteEvent to be able for server and client sharing stuff each other for example I have a ki blast in the game the ki blast is like a tool you can select it by pressing 1 and then shot its great but its made like this

There;s one script in the ServerScriptService:

local remotes = game:GetService("ReplicatedStorage"):WaitForChild("Remotes") local Object = game:GetService("ServerStorage"):WaitForChild("Blast_Model") local physicsService = game:GetService("PhysicsService")

local Blast_Speed = 120 --// Default [120] local Damage = 8 --// Default [8]

function NewBlast(Damage,Speed,Target,StartPos,pName) local Blast = Object:Clone() Blast:WaitForChild('Damage').Value = Damage Blast.Parent = workspace Blast.CFrame = StartPos Blast.Velocity = ((Target - Blast.Position).unit) * Speed local force = Instance.new'BodyForce' force.force = Vector3.new(0, Blast:GetMass()*workspace.Gravity, 0) force.Parent = Blast local BlastColor = ColorSequence.new(Blast.Color) Blast.Trail.Color = BlastColor

Blast:WaitForChild('Owner').Value = pName
Blast:WaitForChild('Damage').Value = Damage
Blast:WaitForChild('GeneralScript').Disabled = false

game:GetService("Debris"):AddItem(Blast)

Blast:SetNetworkOwner(nil)

end

function CreateSound(audioID,audioVolume,pitch,debris,paren) local link = 'rbxassetid://' local Audio = Instance.new('Sound') Audio.SoundId = link..audioID Audio.Volume = audioVolume Audio.PlaybackSpeed = pitch Audio.Parent = paren Audio.Name = math.random(1, 1000000) --//Names the Audio Randomly a Number from 1 to 1000000 Audio.EmitterSize = 3.5 game.Debris:AddItem(Audio,debris)

Audio:Play()

end

remotes.FireBlast.OnServerInvoke = function(player,p) local character = player.Character if character then local humanoid = character:FindFirstChild("Humanoid") if humanoid and humanoid:FindFirstChild("Animator") then local r6_rightarmanimation = Instance.new("Animation") r6_rightarmanimation.AnimationId = "rbxassetid://680304199" r6_rightarmanimation = humanoid:LoadAnimation(r6_rightarmanimation) local r6_leftarmanimation = Instance.new("Animation") r6_leftarmanimation.AnimationId = "rbxassetid://680316109" r6_leftarmanimation = humanoid:LoadAnimation(r6_leftarmanimation)

        local r15_rightarmanimation = Instance.new("Animation")
        r15_rightarmanimation.AnimationId = "rbxassetid://1945739413"
        r15_rightarmanimation = humanoid:LoadAnimation(r15_rightarmanimation)
        local r15_leftarmanimation = Instance.new("Animation")
        r15_leftarmanimation.AnimationId = "rbxassetid://1945751949"
        r15_leftarmanimation = humanoid:LoadAnimation(r15_leftarmanimation)

        if humanoid.RigType == Enum.HumanoidRigType.R6 then
            local animationMATH = math.random(1,2)
            CreateSound(145681580,.3,1.1,0.8,character:FindFirstChild("Head"))
            CreateSound(853857055,.5,1,1,character:FindFirstChild("Head"))
            if animationMATH == 1 then
                r6_rightarmanimation:Play()
                --r6_rightarmanimation.KeyframeReached:Wait()
                NewBlast(Damage,Blast_Speed,p,CFrame.new(character['Right Arm'].RightGripAttachment.WorldPosition.X,character['Right Arm'].RightGripAttachment.WorldPosition.Y,character['Right Arm'].RightGripAttachment.WorldPosition.Z),player.Name)
            else
                r6_leftarmanimation:Play()
                --r6_leftarmanimation.KeyframeReached:Wait()
                NewBlast(Damage,Blast_Speed,p,CFrame.new(character['Left Arm'].LeftGripAttachment.WorldPosition.X,character['Left Arm'].LeftGripAttachment.WorldPosition.Y,character['Left Arm'].LeftGripAttachment.WorldPosition.Z),player.Name)
            end
        else
            local animationMATH = math.random(1,2)
            CreateSound(145681580,.3,1.1,0.8,character:FindFirstChild("Head"))
            CreateSound(853857055,.5,1,1,character:FindFirstChild("Head"))
            if animationMATH == 1 then
                r15_rightarmanimation:Play()
                --r15_rightarmanimation.KeyframeReached:Wait()
                NewBlast(Damage,Blast_Speed,p,CFrame.new(character['RightHand'].RightGripAttachment.WorldPosition.X,character['RightHand'].RightGripAttachment.WorldPosition.Y,character['RightHand'].RightGripAttachment.WorldPosition.Z),player.Name)
            else
                r15_leftarmanimation:Play()
                --r15_leftarmanimation.KeyframeReached:Wait()
                NewBlast(Damage,Blast_Speed,p,CFrame.new(character['LeftHand'].LeftGripAttachment.WorldPosition.X,character['LeftHand'].LeftGripAttachment.WorldPosition.Y,character['LeftHand'].LeftGripAttachment.WorldPosition.Z),player.Name)
            end
        end
    end
end

end

So this script lets say for server and client that they are working together the Remote (first line of the code) is the folder with FunctionEvent its not a model but that Blast_Model (second line of the code) is placed in the ServerStorage and that Blast_Model has a script for itself But this script actually I think activates this one so they work together this is LocalScript and its placed in StarterPack:

local remotes = game:GetService("ReplicatedStorage"):WaitForChild("Remotes") local tool = script.Parent

local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid:WaitForChild("Animator") local mouse = player:GetMouse()

local Cooldown = 0.3 --// Default [0.2] local debounce = false

tool.Activated:connect(function() if not debounce then debounce = true local point = mouse.Hit.p

    remotes.FireBlast:InvokeServer(point)
    wait(Cooldown)

    debounce = false
end

end)

local point = mouse.Hit.p Tool.FireBlast:FireServer(point)

My question here is now can I use this method of showing server the hair model and particles (aura) sorry for being so long

Answer this question